Select Data from dataGrid

P

PawelR

Hello group
I've in my apps DataGrid.DataSource=myDataView. DataView use RowFilter. I
change this property dynamic. DataGrid don't display all columns (I'use
dataGridStyle) My questions.
1. How get unvisible field from selected row (click on Row Header in
dataGrid)?
2. How select all cell in one row (ex on click on header row)? - Change
color selected row. I don't copy from selected cells. This is only for user
because my table have more visible columns?
 
?

=?ISO-8859-2?Q?Marcin_Grz=EAbski?=

Hi PawelR,
Hello group
I've in my apps DataGrid.DataSource=myDataView. DataView use RowFilter. I
change this property dynamic. DataGrid don't display all columns (I'use
dataGridStyle) My questions.
1. How get unvisible field from selected row (click on Row Header in
dataGrid)?
2. How select all cell in one row (ex on click on header row)? - Change
color selected row. I don't copy from selected cells. This is only for user
because my table have more visible columns?

Check the DataGrid methods:

bool IsSelected(int row)
void Select(int row)
void UnSelect(int row)

As i remember if your DataGrid displays data by DataView then
its *Count* and *item* should represent DataGrid visible rows.

Regards

Marcin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top