TableControlCheckBoxClick And TableControlPrepareViewStyleInfo

Hi, I''m using GGC and in TableControlPrepareViewStyleInfo, based on a certain criteria I''m setting: e.Inner.Style.ReadOnly=true; e.Inner.Style.Enabled=false; e.Inner.Style.Clickable=false; But when I click on a CheckBox the TableControlCheckBoxClick still fires. What would be the most efficient way of checking in TableControlCheckBoxClick handler that a checkbox is disabled? Thank you.

2 Replies

AD Administrator Syncfusion Team December 1, 2005 04:32 PM UTC

You can try code like:
private void gridGroupingControl1_TableControlCheckBoxClick(object sender, GridTableControlCellClickEventArgs e)
{
	GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex, e.Inner.ColIndex);
	if(style.Enabled)
	{
		Console.WriteLine("gridGroupingControl1_TableControlCheckBoxClick");
	}
}


AD Administrator Syncfusion Team December 1, 2005 04:37 PM UTC

This works perfectly! Thank you!

Loader.
Up arrow icon