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:





37876 Dec 1,2005 04:19 PM UTC Dec 1,2005 04:37 PM UTC WinForms 2
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);

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

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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