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

Access cell values when using Group By functionality

Thread ID:





62488 Jun 15,2007 05:22 PM UTC Jun 15,2007 06:02 PM UTC WinForms 2
Tags: GridControl
Asked On June 15, 2007 05:22 PM UTC

I have a GridGrouping Control, I have hooked into the TableControlCurrentCellControlDoubleClick event to capture specific cell values when the user doublecclicks on a row.

this is how i get the id field value
int rowIndex = e.TableControl.CurrentCell.RowIndex;
string Id = e.TableControl.Table.TableModel[rowIndex, gridIdColumnIndex].CellValue.ToString();

This works under normal circumstances, however, when the rows are grouped by any of the columns in the grid, i cannot get the id value for a row when it's doubleclicked...the cellvalue is alway = empty string

Replied On June 15, 2007 05:44 PM UTC

thanks again Haneef.

really appreciate your help.

haneefm [Syncfusion]
Replied On June 15, 2007 06:02 PM UTC

Hi Nedu,

To get the id column value of a record, you can use the GetValue method of that record. Below is a code snippet.

object objId = e.TableControl.Table.CurrentRecord.GetValue("IDColumnName");
string id = Convert.ToString(objId);

Best Regards,


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