windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutviewoptionscustomization-18edf126.md
Gets or sets a value which specifies whether end-users can filter data in the View.
Namespace : DevExpress.XtraGrid.Views.Layout
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DefaultValue(true)]
[XtraSerializableProperty]
public bool AllowFilter { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property AllowFilter As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
A Boolean value that specifies whether the data can be filtered by end-users.
|
You can access this nested property as listed below:
| Object Type | Path to AllowFilter |
|---|---|
| LayoutView |
.OptionsCustomization .AllowFilter
|
In Layout Views, end-users can filter data using filter drop-down lists (that can be invoked via field filter buttons) and the Edit Filter button within the Filter Panel. If the AllowFilter option is set to false , filter buttons for all fields and the Edit Filter button are hidden, so end-users are no longer able to filter data. However, data can still be filtered in code.
To prevent specific fields from being filtered via filter drop-down lists, use the corresponding column object’s OptionsColumnFilter.AllowFilter option.
See Also
LayoutViewOptionsCustomization Class