How to disable a CheckBox column in a DBGrid
How to disable or readonly a ch开发者_运维技巧eckbox column in a DBGrid. I'm using wwDbGrid and EditControl option.
I am not familiar with the component but did you try something like:
wwDBGrid.Columns[1].ReadOnly:=True;
Try to set as readonly the TField that is binded with the checkbox column
You can do it through the Grid component
TwwDBGrid(Sender).ColumnByName(FieldName).ReadOnly := True;
or through the dataset's TField
TField.ReadOnly := True;
精彩评论