ggc - column identity in TableControlCellHitTest

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.

1 Reply

HA haneefm Syncfusion Team 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

Loader.
Up arrow icon