GridOptionsCustomization.AllowFilter Property
Gets or sets a value which specifies whether end-users can filter data using the filter dropdowns.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v24.2.dll
Declaration
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AllowFilter { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true | true if end-users can filter data using the filter dropdowns; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to AllowFilter |
---|---|
GridView |
|
Remarks
End-users can filter a View’s data using filter dropdowns which can be invoked by clicking on the Filter Button displayed within column headers. By default, all columns display such buttons thus enabling end-users to apply data filtering. If the AllowFilter property’s value is true the visibility of these buttons for each individual column can be specified. The desired columns’ OptionsColumnFilter.AllowFilter option should be used for this purpose. If the AllowFilter property’s value is false, none of the column headers will display filter buttons. The OptionsColumnFilter.AllowFilter option’s value is ignored in this case.
End-users can also filter data using the auto filter row regardless of the AllowFilter property’s value. The visibility of the auto filter row is specified by the GridOptionsView.ShowAutoFilterRow property.
For more information on data filtering, see the Filtering Overview topic.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowFilter property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.