How do I know when a user has moved to the next row in a grid? There seems to be no ''RowChanged'' event or similar event to catch. I don''t care if the Row is selected or not, I just need to know when a user has left a row. Currently, I catch the gridcurrentcellactivated event and determine if the row has changed by getting the currentcell row index. But this involves me handling private variables and checking them with the currentcell row index. There has got to be an easier way. Thanks!
ADAdministrator Syncfusion Team August 12, 2004 03:00 PM
You can use the CurrentCellMoved event. In that event, you can check grid.CurrentCell.MoveFromRowIndex and grid.CurrentCell.MoveToRowIndex to see if the user has changed rows. This should work for either a GridControl or a GridDataBoundGrid.
In a GridDataBoundGrid, there are also RowEnter and RowLeave events.