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

Bound Grid Readonly/Disabled

Thread ID:

Created:

Updated:

Platform:

Replies:

18076 Aug 24,2004 06:25 AM UTC Aug 24,2004 07:12 AM UTC WinForms 2
loading
Tags: GridControl
Stuart Turner
Asked On August 24, 2004 06:25 AM UTC

Hi, I''m trying to make my bound grid readonly and greyed out. I''ve done this using the following code: gridRandomClassic.Model.ReadOnly = true; gridRandomClassic.BackColor = Color.FromKnownColor(KnownColor.Control); This is fine except that in one of the columns I have check boxes that are still white. Is there a way to change the checkbox color? Or is there an easier way of disabling the grid?

Administrator [Syncfusion]
Replied On August 24, 2004 06:43 AM UTC

I think to make the checkbox gray, you will have set style.Enabled = false for that column using either gridControl1.COlStyle[col].Enabled or gridDataBoundGrid1.GridBoundColumns[col].StyleInfo.Enabled or gridDataBoundGrid1.Binder.InternalColumns[col].StyleInfo.Enabled.

Stuart Turner
Replied On August 24, 2004 07:12 AM UTC

Thanks, This worked gridDataBoundGrid1.GridBoundColumns[col].StyleInfo.Enabled = false;

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

;