[英]Devexpress Winforms Gridview RowSelection Checkbox in intermediate state
I'm using WinForms Devexpress and bumped into the following task:我正在使用 WinForms Devexpress 并遇到了以下任务:
Somehow I need for DevExpress GridView to programmatically set data row selection checkbox to intermediate state (as the state of the top checkbox at the header at the picture below:我需要 DevExpress GridView 以编程方式将数据行选择复选框设置为中间 state(如下图 header 顶部复选框的 state:
I'm wondering if it is possible or how to overcome the issue.我想知道是否有可能或如何克服这个问题。
You should set the column editor's AllowGrayed
property to true
.您应该将列编辑器的
AllowGrayed
属性设置为true
。
this.yourBooleanColumn.ColumnEdit = this.repositoryItemCheckEdit1;
this.repositoryItemCheckEdit1.AllowGrayed = true;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.