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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

55258 Jan 25,2007 02:15 PM Jan 29,2007 04:47 AM Windows Forms 1
loading
Tags: Grouping
James Blibo
Asked On January 25, 2007 02:15 PM

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.

Administrator [Syncfusion]
Replied On January 29, 2007 04:47 AM

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

CONFIRMATION

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.

;