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

How to get range of rowindex when we select multiple rows of gridgrouping control

Hi,
I am using gridgrouping control.
I want to get the range of rowindex when we select multiple rows of gridgrouping control.
Please give me any solution regarding to my issue.
 
Regards,
Rasika

1 Reply

MS Maniratheenam Sehar Syncfusion Team November 3, 2014 04:47 AM UTC

Hi Rasika,

 

Thank you for using Syncfusion products.

 

Query:

How to get range of rowindex when we select multiple rows of gridgrouping control

Use the Model.Selections property to manages selected ranges in the grid. It allows you to add, remove and get selections, determines selection state of a specific cell.

 

//Get the selected rows from the groupin grid.

GridRangeInfoList range = this.gridGroupingControl1.TableModel.Selections.GetSelectedRows(true,true);

foreach( GridRangeInfo info in range)

{

Element el = this.gridGroupingControl1.TableModel.GetDisplayElementAt(info.Top);

Console.WriteLine( "Selected RowIndex : " + info.Top + " =====> " + el );

}

 

For your better convenience, we’ve added the UG link below,

Link: http://help.syncfusion.com/ug/windows%20forms/default.htm#!documents/howtogettheselectedr.htm

 

 

Please let us know, if you have any concerns.

 

Regards,

ManiRatheenam S


Loader.
Live Chat Icon For mobile
Up arrow icon