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

How to get value of particular column when entire row is selected

Thread ID:





118409 Mar 5,2015 03:37 PM UTC Mar 9,2015 07:07 PM UTC WinForms 6
Tags: GridGroupingControl
Rem Aza
Asked On March 5, 2015 03:37 PM UTC

The Gridgroupingcontrol is bound to a dataset from a table "Books" that had three columns Title , Author,  Genre.

Entire row gets selected when clicked ( ListBoxSelectionMode = SelectionMode.One; )

How do I get the Title value of a selected row 

Sérgio Rodrigues Costa
Replied On March 6, 2015 12:41 PM UTC

I'm going through the same experience. I would like to loop through the whole Gridgroupingcontrol obtaining certain fields . The Gridgroupingcontrol is connected to a list. I am using Entity Framework to return the data list. Can anyone help?

Sérgio Rodrigues Costa
Replied On March 6, 2015 06:30 PM UTC

Well, I´m sorry.
I mean on GridGroupingControl.

Solai A L [Syncfusion]
Replied On March 6, 2015 09:28 PM UTC

Hi Rem/Sergio,

Thank you for your interest in Syncfusion Products.

In order to get the particular value of a record in column wise, you can use GetValue() of record class(by passing the column name) in TableModel_SelectedRecordsChanged event. Please refer the below code snippet for further clarification.


Code Snippet[C#]:

foreach (GridRangeInfo range in gridGroupingControl1.TableModel.SelectedRanges)


                if (range.IsRows)


                    for (int i = range.Top; i <= range.Bottom; i++)


                        Record rec = gridGroupingControl1.Table.DisplayElements[i].GetRecord();

                        string colvalue = rec.GetValue("column name").ToString();




Please let us know if you have any other concerns.

Thanks & Regards,


Sérgio Rodrigues Costa
Replied On March 8, 2015 12:19 PM UTC

Thank you. Works great.
Best regards.

Rem Aza
Replied On March 9, 2015 03:45 AM UTC

Thank you . 

Neelakandan Kannan [Syncfusion]
Replied On March 9, 2015 07:07 PM UTC

Hi Rem/Sergio,

Thank you for your update.

We are glad to hear from you that your scenario is resolved.

Please let us know if you need further assistance on this. We will assist you as early as possible.




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