简体   繁体   English

Devexpress Winforms Gridview 中间的 RowSelection 复选框 state

[英]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.

相关问题 Devexpress gridview复选框列选择? - Devexpress gridview checkbox column selection? 禁用/取消选中GridView(DevExpress)中的复选框 - Disable / uncheck checkbox in GridView (DevExpress) 有没有一种方法可以自动格式化DevExpress GridView Winforms中的行? - Is there a way to to autoformat a row in DevExpress GridView winforms? 当从后面的代码中单击按钮时,检查Dataitemtemplate devexpress gridview内部的复选框状态 - checking checkbox state which is inside Dataitemtemplate devexpress gridview when button is clicked from code behind 如何在非主题的DevExpress GridView中为复选框提供图像? - How to provide images for checkbox in an unthemed DevExpress GridView? 在gridview中获取复选框状态 - get checkbox state in in gridview 如何在Winforms DevExpress中将GridView单元格值保存到Access数据库中? - How to Save GridView Cell Values to Access Database in winforms DevExpress? 防止在按键新闻devexpress gridview winforms上编辑特定单元格 - Prevent Editing Specific Cell on Key Press devexpress gridview winforms 从MS Access数据库和Gridview Winforms Devexpress中完全删除吗? - Delete Completely from MS Access Database and Gridview Winforms Devexpress? 如何将单击事件设置为行中的所有单元格? Gridview Winforms Devexpress - How to set click Event to all cells in a Row ? Gridview Winforms Devexpress
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM