Home Forums WinForms controls Xceed Grid for WinForms persist current selection after column sort

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17505 |

    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)

    User (Old forums)
    Member
    Post count: 23064

    2 weeks have passed. Any suggestions?

    Imported from legacy forums. Posted by Buzz (had 1116 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.