blackduck603
Member
When my Datagrid is sorted by a column, for some reason it jumps to the previously selected row when I click on a different row.
I added some debug.writeline calls in the CurrentCellChanged event handler and the CurrentCell properties show the row as the previously selected (not the row that I just clicked).
Example:
Datagrid is sorted by status field
ID DESC STATUS
5 5TEXT A
7 7TEXT A
8 8TEXT B
11 11TEXT B
15 15TEXT C
Select row with ID = 7 in Datagrid.
this is row 2 (using 1 based numbering)
change record so status changes to C
this should move ID 7 to row 5
ID 7 does not move at this point
when I click on th erow with ID 8
now ID 7 moves to row 5 and that becomes the selected row.
I cannot figure out why the click on a different row in the datagrid is not working when the data grid is in sort mode.
I appreciate any assistance with this.
Thanks
I added some debug.writeline calls in the CurrentCellChanged event handler and the CurrentCell properties show the row as the previously selected (not the row that I just clicked).
Example:
Datagrid is sorted by status field
ID DESC STATUS
5 5TEXT A
7 7TEXT A
8 8TEXT B
11 11TEXT B
15 15TEXT C
Select row with ID = 7 in Datagrid.
this is row 2 (using 1 based numbering)
change record so status changes to C
this should move ID 7 to row 5
ID 7 does not move at this point
when I click on th erow with ID 8
now ID 7 moves to row 5 and that becomes the selected row.
I cannot figure out why the click on a different row in the datagrid is not working when the data grid is in sort mode.
I appreciate any assistance with this.
Thanks