Skip to main content

GridView.ResetAutoFilterConditions() Method

Resets all columns’ auto filter row conditions to their default values.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

public virtual void ResetAutoFilterConditions()

Remarks

Use the ResetAutoFilterCondition(GridColumn), ResetAutoFilterConditions(IEnumerable<GridColumn>), and ResetAutoFilterConditions() methods to reset auto filter row conditions.

using DevExpress.XtraGrid.Columns;

// Reset the Phone column's auto filter row condition.
gridView1.ResetAutoFilterCondition(colPhone);
// Reset the Phone and Fax columns' auto filter row conditions.
gridView1.ResetAutoFilterConditions(new GridColumn[] { colPhone, colFax });
// Reset all columns' auto filter row conditions.
gridView1.ResetAutoFilterConditions();
See Also