RowIndex of all the selected rows

Hi, How can you obtain the rowindex of all the rows which are selected currently?

1 Reply

AD Administrator Syncfusion Team December 2, 2004 09:38 AM UTC

GridRangeInfoList ranges = this.grid.Selections.GetSelectedRows(true, false);
foreach(GridRangeInfo range in ranges)
{
	for(int i = range.Top; i <= range.Bottom; ++i)
	{
		Console.WriteLine("row {0} selected", i);
        }
}	

Loader.
Up arrow icon