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

Bound Grid Readonly/Disabled

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?

2 Replies

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

ST Stuart Turner August 24, 2004 07:12 AM UTC

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

Live Chat Icon For mobile
Up arrow icon