问题描述
您好,我正在尝试弄清楚如何启用用户检查或取消选中无界DataGridViewCheckboxColumn。我有多个DataGridView对象。每个都绑定到他们自己的个人DataView对象。所有DataView对象的表都绑定到单个DataTable。每个DataGridView对象中都有三列,但是只有两列是从DataTable中检索的,我的复选框列是第三列无限制的。
我用Google搜索了类似的问题,但它对我不起作用。
DataGridView的属性Enabled和Readonly分别为true和false。 DataGridViewCheckboxColumn的属性Readonly为false。 DataView的属性AllowEdit也设置为true。我还缺少什么或需要设置以启用用户检查或取消选中?
Hi, I am trying to figure out how to enable user checking or unchecking of an unbounded DataGridViewCheckboxColumn. I have multiple DataGridView objects. Each of which is bounded to their own individual DataView object. The table of all DataView objects is tied to a single DataTable. There are three columns in each of my DataGridView objects, but only two of them is retrieved from the DataTable with my checkbox column being the third unbounded one.
I Googled for similar problems, but it isn't working for me.
Property Enabled and Readonly for DataGridView are true and false, respectively. Property Readonly for DataGridViewCheckboxColumn is false. Property AllowEdit for DataView is set to true as well. What else am I missing or need to set to enable user checking or unchecking?
推荐答案
这篇关于如何在有界DataGridView中启用无界DataGridViewCheckboxColumn的检查或取消选中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!