我正在使用.NET Windows窗体DataGridView,我需要编辑一个DataBound列(绑定在布尔DataTable列上).为此,我指定像这样的单元格模板:
DataGridViewColumn column = new DataGridViewColumn(new DataGridViewCheckBoxCell());
你看我需要一个CheckBox单元格模板.
我面临的问题是该列始终是只读/禁用的,就好像它是TextBox类型一样.它根本不显示复选框.
有关如何使用DataGridView的可编辑复选框列的任何想法?
更新:对于Windows窗体,请.
谢谢.