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

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.
Live Chat Icon For mobile
Up arrow icon