Hw do i get specific list of all rows selected

The Grid Info List returns a range of all rows..(R3:R8)...Hw do i get a list of row indices like
3,4,5,6,7,8

1 Reply

HA haneefm Syncfusion Team April 20, 2007 05:52 PM UTC

Hi Rahul,

You can try this code.

foreach( GridRangeInfo info in this.grid.Model.SelectedRanges)
{
for( int i = info.Top; i <=info.Bottom;i++)
{
Console.WriteLine("RowIndex {0} has been selected",info.Top);
}
}

Best regards,
Haneef

Loader.
Up arrow icon