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. Image for the cookie policy date
close icon

From the TableControlCellClick event, how do I get the columnname when the row is a GridCaptionSection

From the TableControlCellClick event, how do I get the columnname when the row is a GridCaptionSection. I noticed that the Column property of the style.TableIdentityInfo object is null when the row is a GridCaptionSection.

1 Reply

AD Administrator Syncfusion Team January 29, 2007 09:47 AM UTC

Hi James,

Thanks for being patience.

The reason TableIdentity.Column being null is that the caption section is not with respective to columns and it is possible to get only the GroupedColumn and SummaryColumn name. The following is the code snippet.
>>>>>>>>>>>>>>>>>>>>>
//TableControlCellClick event
GridTableCellStyleInfo style = e.TableControl.Table.TableModel[e.Inner.RowIndex, e.Inner.ColIndex];
if (style.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionSummaryCell)
{
GridSummaryColumnDescriptor columnName = style.TableCellIdentity.SummaryColumn;
if(columnName != null)
MessageBox.Show(columnName.Name);
}
>>>>>>>>>>>>>>>>>>>>>

Kindly let us know if you need any further assistance.
Have a nice day.

Best regards,
Madhan

Loader.
Live Chat Icon For mobile
Up arrow icon