dataGrid CurrentRowIndex problem.

  • Thread starter Thread starter Lagur
  • Start date Start date
L

Lagur

hi

im having problem on getting proper CurrentRowIndex in DataGrid
when column header is clicked (probably changes position or sorted out).

how will i get the previous CurrentRowIndex even the datagrid is changed?

thanks a lot.
 
Hi Lagur,

You need to remember the primary key of the selected row before the sort
order is changed, and then select the row with the same primary key after
the search.
 
Back
Top