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.
Syncfusion Feedback

ggc - column identity in TableControlCellHitTest

Thread ID:

Created:

Updated:

Platform:

Replies:

60496 May 7,2007 11:24 AM UTC May 7,2007 05:48 PM UTC Windows Forms 1
loading
Tags: GridControl
Ryan Hardoon
Asked On May 7, 2007 11:24 AM UTC

Hi,

How do verify that the CheckBox control of a specific column was hit ?
(it has to be verified with the column name, since the columns-order is yet to be defined)


Thanks in advance.

haneefm [Syncfusion]
Replied On May 7, 2007 05:48 PM UTC

Hi Ryan,

You can try this code.

private void gridGroupingControl1_TableControlCellHitTest(object sender, GridTableControlCellHitTestEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex,e.Inner.ColIndex);
if( style != null && style.TableCellIdentity.Column != null )
{
Console.WriteLine( "CellType : " + style.CellType );
Console.WriteLine( "Column Name : " + style.TableCellIdentity.Column.Name );
}
}

Best regards,
Haneef

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.

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

;