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.
Syncfusion Feedback

Toggle the Enabled property on a checkbox in a GDBG.

Thread ID:

Created:

Updated:

Platform:

Replies:

47239 Jul 31,2006 02:27 PM UTC Aug 4,2006 05:56 PM UTC Windows Forms 3
loading
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

Thanks,
Megavannan

DisableCheck.zip

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

Thanks, worked like a charm

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

;