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.

Toggle the Enabled property on a checkbox in a GDBG.

Thread ID:





47239 Jul 31,2006 10:27 AM Aug 4,2006 01:56 PM Windows Forms 3
Tags: GridControl
Andrew E
Asked On July 31, 2006 10:27 AM

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 01:49 PM

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

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

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 01:56 PM

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.

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.