Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何禁用或只读 DBGrid 中的复选框列。我正在使用 wwDbGrid 和 EditControl 选项。
我不熟悉该组件,但您是否尝试过类似的操作:
wwDBGrid.Columns[1].ReadOnly:=True;
尝试将与复选框列绑定的 TField 设置为只读
您可以通过 Grid 组件来完成
TwwDBGrid(Sender).ColumnByName(FieldName).ReadOnly := True;
或通过数据集的 TField
TField.ReadOnly := True;