Skip to main content

GridView.ResetAutoFilterConditions(IEnumerable<GridColumn>) Method

Resets the specified 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(
    IEnumerable<GridColumn> columns
)

Parameters

Name Type Description
columns IEnumerable<GridColumn>

An array of GridColumn objects that specify the grid columns whose auto filter row conditions are to be reset.

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