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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

117507 Oct 31,2014 07:24 AM Nov 2,2014 11:47 PM Windows Forms 1
loading
Tags: GridGroupingControl
Rasika
Asked On October 31, 2014 07:24 AM

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

Maniratheenam Sehar [Syncfusion]
Replied On November 2, 2014 11:47 PM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;