Home › Forums › WinForms controls › Xceed Grid for WinForms › How do I maintain the current row when the grid is sorted?
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)