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.

TableControlCheckBoxClick And TableControlPrepareViewStyleInfo

Thread ID:





37876 Dec 1,2005 11:19 AM Dec 1,2005 11:37 AM Windows Forms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On December 1, 2005 11:19 AM

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.

Administrator [Syncfusion]
Replied On December 1, 2005 11:32 AM

You can try code like:
private void gridGroupingControl1_TableControlCheckBoxClick(object sender, GridTableControlCellClickEventArgs e)
	GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex, e.Inner.ColIndex);

Administrator [Syncfusion]
Replied On December 1, 2005 11:37 AM

This works perfectly! Thank you!


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.