Can I select a row in a DataGrid and show that row?

  • Thread starter Thread starter Doru Roman
  • Start date Start date
D

Doru Roman

Hi,

I use a DataGrid and I have a search on a specific value in a dataset. Once
I find the row that contains the value, I would like that row to be visible
in the datagrid window, in other words, to scroll up to that particular row
to be the first or last in the visible part of the grid.

Any suggestions please?
Thanks,
Doru
 
You can set the CurrentRowIndex property to ensure that the row is visible
and you can use the Select method to select (highlight) the row.
 
Thanks Tom,
I used CurrentRowIndex too but because of some other bad code it did not
work. Now it does.
 
Back
Top