Back to Devexpress

LayoutViewOptionsCustomization.AllowFilter Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutviewoptionscustomization-18edf126.md

latest2.7 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public bool AllowFilter { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property AllowFilter As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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 TypePath 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

AllowFilter

LayoutViewOptionsCustomization Class

LayoutViewOptionsCustomization Members

DevExpress.XtraGrid.Views.Layout Namespace