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

Disable CheckBox cell

Thread ID:

Created:

Updated:

Platform:

Replies:

18867 Sep 10,2004 06:38 PM UTC Sep 13,2004 04:45 PM UTC Windows Forms 2
loading
Tags: GridControl
Todd Swygert
Asked On September 10, 2004 06:38 PM UTC

Is there a way to disable a CheckBox cell in a GridBoundColumn? In other words, disable certain checkbox cells within the column while other checkbox cells are still enabled within the column. Guessing I tried these but no luck: this.dg[3, 0].Enabled = false; this.dg[3, 1].Control.Enabled = false; Thank you, Steve

Administrator [Syncfusion]
Replied On September 10, 2004 08:53 PM UTC

You cannot explicitly set cell specific properties (other than style.CellValue or style.Text) in a GridDataBoundGrid. Instead you have to use either the grid.PrepareViewStyleInfo event or the grid.Model.QueryCellInfo event to dynamically set such properties. Here is a KB discussing setting specific cells to be ReadOnly. Setting style.Enabled = false would be similar. http://www.syncfusion.com/Support/article.aspx?id=10351

Todd Swygert
Replied On September 13, 2004 04:45 PM UTC

Clay, Setting the Enabled property to false in QueryCellInfo worked perfectly. Thanks, Steve >You cannot explicitly set cell specific properties (other than style.CellValue or style.Text) in a GridDataBoundGrid. Instead you have to use either the grid.PrepareViewStyleInfo event or the grid.Model.QueryCellInfo event to dynamically set such properties. Here is a KB discussing setting specific cells to be ReadOnly. Setting style.Enabled = false would be similar. > >http://www.syncfusion.com/Support/article.aspx?id=10351

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

;