Home Forums WinForms controls Xceed Grid for WinForms Cannot disable control in CheckBox/ViewerEditor Reply To: Cannot disable control in CheckBox/ViewerEditor

User (Old forums)
Member
Post count: 23064

Setting the cell or the row to ReadOnly should work.  However you can also change the default CheckBoxEditor/Viewer on the cell, and replace it by one that is disabled.

e.g.:

gridControl1.DataRows[ 0 ].Cells[

“Discontinued” ].ReadOnly = true;

//or

gridControl1.DataRows[ 0 ].ReadOnly =

true;

//or

WinCheckBox checkBox = new WinCheckBox();

checkBox.Enabled =

false;

gridControl1.DataRows[ 0 ].Cells[

“Discontinued” ].CellEditorManager = new CheckBoxEditor( checkBox );

gridControl1.DataRows[ 0 ].Cells[

“Discontinued” ].CellViewerManager = new CheckBoxViewer( checkBox );

Imported from legacy forums. Posted by André (had 912 views)