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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bound Grid Readonly/Disabled

Thread ID:





18076 Aug 24,2004 06:25 AM UTC Aug 24,2004 07:12 AM UTC WinForms 2
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;


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon