Home Forums WinForms controls Xceed Grid for WinForms How do I maintain the current row when the grid is sorted?

Viewing 1 post (of 1 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #17798 |

    It is possible to maintain the current row, however you will need to provide the implementation yourself. What you will need to do is the following:

    1- Create a global member with a Xceed.Grid.Row datatype that will contain the current row.

    2- Create a boolean global member that will act as a flag to determine when the current row has been changed.

    3- Handle the grid’s CurrentRowChanged event to set the new current row if it has changed.

    4- Handle the grid’s Sorted event to bring the current row into view.

    Imported from legacy forums. Posted by Xceed admin (had 1672 views)

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.