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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TableControlCheckBoxClick And TableControlPrepareViewStyleInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

37876 Dec 1,2005 04:19 PM UTC Dec 1,2005 04:37 PM UTC WinForms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 1, 2005 04:19 PM UTC

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 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");
	}
}

Administrator [Syncfusion]
Replied On December 1, 2005 04:37 PM UTC

This works perfectly! Thank you!

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

;