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. Image for the cookie policy date

Toggle the Enabled property on a checkbox in a GDBG.


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


3 Replies

AD Administrator Syncfusion Team August 1, 2006 05:49 PM UTC

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


AD Administrator Syncfusion Team 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

Thanks,
Megavannan

DisableCheck.zip


AD Administrator Syncfusion Team August 4, 2006 05:56 PM UTC

Thanks, worked like a charm

Loader.
Live Chat Icon For mobile
Up arrow icon