【问题标题】:Devexpress Winforms Gridview RowSelection Checkbox in intermediate stateDevexpress Winforms Gridview RowSelection Checkbox 处于中间状态
【发布时间】:2016-08-02 09:52:24
【问题描述】:


我正在使用 WinForms Devexpress 并遇到以下任务:
不知何故,我需要 DevExpress GridView 以编程方式将数据行选择复选框设置为中间状态(如下图标题中顶部复选框的状态:


我想知道这是否可能或如何克服这个问题。

【问题讨论】:

  • 这是您尝试重置的过滤器还是实际复选框的内容?
  • 您在该列中使用 RepositoryItemCheckEdit 吗?
  • hambone,用于复选框的内容。 Marko Juvančič,是的。我使用 RepositoryItemCheckEdit 解决了这个问题。谢谢你们。

标签: c# winforms gridview checkbox devexpress


【解决方案1】:

您应该将列编辑器的AllowGrayed 属性设置为true

this.yourBooleanColumn.ColumnEdit = this.repositoryItemCheckEdit1;    
this.repositoryItemCheckEdit1.AllowGrayed = true;

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-12-29
    • 2010-12-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多