简体   繁体   中英

Filtering in DevExpress grid

I'm trying to programmatically disable filtering for a specific column in the DevExpress grid in my wpf app.

I tried column.AllowAutoFilter=false , but no luck.

Thanks.

Refer the documentation for AllowColumnFiltering property.

It allows or denies filtering of grid columns. If filtering is disabled, FilterEditor will not be shown, regardless of the AllowFilterEditor property value. The AllowFilterEditor property makes sense only when filtering is enabled.

From: Filtering Overview

Individual columns provide the ColumnBase.AllowColumnFiltering property that allows the default behavior, specified by a View, to be overridden. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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