Skip to main content

DataGridView.ClearColumnFilter(String) Method

Resets FilterString or FilterExpression applied to the column. To specify the column, pass its underlying field’s name to the method parameters. The method does not reset a filter set using the Auto Filter Row.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

Declaration

public void ClearColumnFilter(
    string fieldName
)

Parameters

Name Type Description
fieldName String

The name of the data source field used to create the column.

Remarks

To clear a filter for a specific column object, call the DataGridView.ClearColumnFilter(GridColumn) method.

Use the DataGridView.ClearColumnAutoFilter method to clear filters that are set in the auto filter row.

Call the DataGridView.ClearFilter method to reset the filter for all grid columns.

Refer to the following topic for more information on how to filter grid data: How to Filter Rows in DevExpress Data Grid for .NET MAUI.

See Also