dataGrid CurrentRowIndex problem.

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.
 
D

Dmytro Lapshyn [MVP]

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.
 

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