简体   繁体   English

在DevExpress网格中过滤

[英]Filtering in DevExpress grid

I'm trying to programmatically disable filtering for a specific column in the DevExpress grid in my wpf app. 我正在尝试以编程方式在wpf应用程序中禁用对DevExpress网格中特定列的过滤。

I tried column.AllowAutoFilter=false , but no luck. 我尝试了column.AllowAutoFilter=false ,但是没有运气。

Thanks. 谢谢。

Refer the documentation for AllowColumnFiltering property. 请参阅文档中的AllowColumnFiltering属性。

It allows or denies filtering of grid columns. 它允许或拒绝过滤网格列。 If filtering is disabled, FilterEditor will not be shown, regardless of the AllowFilterEditor property value. 如果禁用过滤,则无论AllowFilterEditor属性值如何,都不会显示FilterEditor。 The AllowFilterEditor property makes sense only when filtering is enabled. 仅当启用过滤时, AllowFilterEditor属性才有意义。

From: Filtering Overview 来自: 筛选概述

Individual columns provide the ColumnBase.AllowColumnFiltering property that allows the default behavior, specified by a View, to be overridden. 各个列提供ColumnBase.AllowColumnFiltering属性,该属性允许覆盖由View指定的默认行为。 For instance, you can prevent end-users from invoking the filter dropdowns of individual columns. 例如,您可以防止最终用户调用各个列的过滤器下拉列表。 When filtering by a column is disabled, its filter button is never displayed. 禁用按列过滤时,将永远不会显示其过滤按钮。

References: 参考文献:
Disable Filter Dropdown and enable Filter Editor 禁用过滤器下拉菜单并启用过滤器编辑器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM