Skip to main content

LayoutViewOptionsCustomization.AllowFilter Property

Gets or sets a value which specifies whether end-users can filter data in the View.

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public bool AllowFilter { get; set; }

Property Value

Type Default Description
Boolean true

A Boolean value that specifies whether the data can be filtered by end-users.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowFilter
LayoutView
.OptionsCustomization .AllowFilter

Remarks

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