Welcome to the Xceed Community | Help
Community Search  
More Search Options

persist current selection after column sort

Sort Posts: Previous Next
  •  09-02-2010, 2:50 PM Post no. 28563

    persist current selection after column sort

    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?

  •  09-16-2010, 1:14 PM Post no. 28725 in reply to 28563

    Re: persist current selection after column sort

    2 weeks have passed. Any suggestions?
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.