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?
ADAdministrator Syncfusion Team August 24, 2004 01:43 AM
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.
STStuart Turner August 24, 2004 02:12 AM
gridDataBoundGrid1.GridBoundColumns[col].StyleInfo.Enabled = false;