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.

Access cell values when using Group By functionality

Thread ID:





62488 Jun 15,2007 01:22 PM Jun 15,2007 02:02 PM Windows Forms 2
Tags: GridControl
Asked On June 15, 2007 01:22 PM

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 01:44 PM

thanks again Haneef.

really appreciate your help.

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

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.

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.