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

Selection basics (GridControl)

Thread ID:





103820 Jun 3,2012 11:03 AM UTC Jun 18,2012 05:54 AM UTC WinForms 3
Tags: GridControl
ian bradley
Asked On June 3, 2012 11:03 AM UTC

I find the way the selection code works on the GridControl confusing. It feels overly complex to me, which I think is because I can't achieve very simple operations easily. I don't understand where GridRangeInfo objects come from that represent the range I want to select.

So my question has two parts.

1) How do you select a single cell, and how do you select a whole row?

2) Can you sum up how GridRangeInfo is supposed to work in a paragraph or so? Just to give me a idea of where to look for stuff in the future.


Jeya Preetha M [Syncfusion]
Replied On June 7, 2012 06:15 AM UTC

Hi Ian ,

Thank you for your interest in Syncfusion Products.

Query 1:

To selec a cell in a grid, please make use of "this.gridcontrol.CurrenCell.MoveTo()" and to select a entire row, please refer the following code snippet.


GridRangeInfo activeRange = gridControl1.Selections.Ranges.ActiveRange;


Query 2:

Grid range is a ectanle box, we can specify the range for the following.

1. single cell

2. group of cells(Rectangle)

3. row


Please refer the following link:


which explains about GridRnageInfo.

Please let me know if you have any concerns.


Jeya Preetha M

ian bradley
Replied On June 11, 2012 08:27 PM UTC

Cool, I'll add to that as well:

To select a specific cell, you can do CurrentCell.MoveTo(r,c)


Jeya Preetha M [Syncfusion]
Replied On June 18, 2012 05:54 AM UTC

Hi Ian ,

Thanks for the update.

Yes, using the "CurrentCell.MoveTo(r,c)", you can select the specific cell. To select a range of cell means, please refer the previous update.

Please let me know if you have any concerns.


Jeya Preetha M


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