First, in my grid I do not allow multiple rows to be selected. Selecting a cell selects the entire row.
When I sort a column the grid always scrolls to the top, and the cell/row I had selected is no where to be seen.
This gives a bad experience for my users. They use grouping first, scroll down to a group of interest and make decisions on how the sort the grouped rows by column.
When the column header is clicked for sorting, the grid scrolls to the top. The user must now scroll back down and find the group they were working with.
Seeing no easier solution, I tried the following:
Subscribe to SortedColumnsChanged, in which I save the CurrentCell.
Subscribe to Sorted, in which, if the saved cell is not null, I call BringIntoView.
But BringIntoView will always throw an exception.
Alternatively, I tried subscribing to CurrentRowChanged, in which, if the saved cell is not null, I call BringIntoView.
But again I get exceptions.
Any other ideas?
Imported from legacy forums. Posted by Buzz (had 1175 views)