We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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);

Live Chat Icon For mobile
Up arrow icon