Skip to main content

GridOptionsView.ShowAutoFilterRow Property

Gets or sets whether the auto filter row is displayed.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool ShowAutoFilterRow { get; set; }

Property Value

Type Default Description
Boolean false

true to display the auto filter row; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowAutoFilterRow
GridView
.OptionsView .ShowAutoFilterRow

Remarks

Use the ShowAutoFilterRow property to show/hide the automatic filtering row. To allow users to change the filter condition, use the AllowAutoFilterConditionChange preperty. To specify the filter condition in code, use the AutoFilterCondition preperty.

WindowsFormsSettings.AllowAutoFilterConditionChange = DevExpress.Utils.DefaultBoolean.True;
gridView1.OptionsFilter.AllowAutoFilterConditionChange = DevExpress.Utils.DefaultBoolean.False;

gridView1.OptionsView.ShowAutoFilterRow = true;
colAddress.OptionsFilter.AutoFilterCondition = DevExpress.XtraGrid.Columns.AutoFilterCondition.BeginsWith;

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowAutoFilterRow 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.

See Also