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

Toggle the Enabled property on a checkbox in a GDBG.

Thread ID:





47239 Jul 31,2006 02:27 PM UTC Aug 4,2006 05:56 PM UTC WinForms 3
Tags: GridControl
Andrew E
Asked On July 31, 2006 02:27 PM UTC

I have 2 checkbox columns. If col. 1 is not checked I would like to disable the second checkbox column. the code I currently call in the CheckBoxClick Event is not working. It does set the second checkbox column''s cell value to false though, which unchecks the cell. But I would also like it disabled.

this.gridDataBoundGrid1.Model[e.RowIndex,column].Enabled = false;
this.gridDataBoundGrid1.Model[e.RowIndex,column].CellValue = "False";

Administrator [Syncfusion]
Replied On August 1, 2006 05:49 PM UTC

Can someone please assist me with this situation. Should this be occurring? Is this a known issue?

Administrator [Syncfusion]
Replied On August 1, 2006 09:04 PM UTC

Hi Ae,

Thanks for being patience. This can be achieved by handling the QueryCellInfo and CurrentCellChanged events. In the QueryCellInfo event, the column2 checkbox is disabled or enabled depending on the value in the column1 checkbox and the CurrentCellChanged event is used to refresh the column2 checkbox as the column1 checkbox gets changed.

Please refer to the sample for more details



Administrator [Syncfusion]
Replied On August 4, 2006 05:56 PM UTC

Thanks, worked like a charm


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

or the page will be automatically redirected to 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