AD
Administrator
Syncfusion Team
November 30, 2006 05:00 AM UTC
Hi Adam,
You can handle the CurrentCellMoved event and use Selections.Ranges.AnyRangeContains() method to determine the current row selection in a grid. Here is a code snippet
private void gridControl1_CurrentCellMoved(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellMovedEventArgs e)
{
GridControl grid = sender as GridControl;
GridCurrentCell cc = grid.CurrentCell;
if( grid.Model.Selections.Ranges.AnyRangeContains(GridRangeInfo.Row(cc.RowIndex)))
{
Console.WriteLine("CurrentRowNo: {0} Selected", cc.RowIndex );
}
}
Best Regards,
Haneef