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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Regarding Grid Control selecting rows and added to the Second grid

Thread ID:





73708 May 15,2008 10:28 AM UTC May 19,2008 06:32 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On May 15, 2008 10:28 AM UTC


I am using the Grid control.I have set the Allow selection to Alpha,Table and Row,Property like Excel like selection and Excel like property is to be set to true which allow me to select the rows by using the ctrl key.say i wll selct row no. 1,4,5,8,10 rows out of 10 rows but i am not able get the list of the selected rows in the grid and I want also to add the Selected list in some another grid control. Plz help me.

I shal thank for you

Best Regards
Vikas Chopra

Jisha Joy [Syncfusion]
Replied On May 19, 2008 06:32 AM UTC

Hi Vikas,

This can be achieved by getting the selected ranges by using GetSelectedRows method and iterate through GridRangeInfoList.

Please refer the code:

private void button1_Click(object sender, EventArgs e)

GridRangeInfoList rangeList = this.gridControl1.Selections.GetSelectedRows(true, false);
if (rangeList.Count > 0)
foreach (GridRangeInfo range in rangeList)
for (int row = range.Top; row <= range.Bottom; row++)
for (int col = 1; col <= gridControl1.ColCount; col++)
this.gridControl2[row, col].CellValue = this.gridControl1[row, col].CellValue;


Please let me know if this helps.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon