Skip to main content
A newer version of this page is available. .

GridColumn.FilterInfo Property

Gets or sets the filter condition applied to the column.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

[Browsable(false)]
public ColumnFilterInfo FilterInfo { get; set; }

Property Value

Type Description
ColumnFilterInfo

A ColumnFilterInfo object specifying the filter condition applied to the column.

Remarks

To apply a filter to a column, assign a ColumnFilterInfo object to the FilterInfo property. You can assign a single ColumnFilterInfo object to multiple columns at once.

To clear a column’s filter specified by the FilterInfo object, call the GridColumn.ClearFilter method.

The following example shows how to assign filter criteria (“[ShipCountry] = ‘Poland’”) to the CustomerID grid column.

GridColumn columnCustomer = gridView1.Columns["CustomerID"];
columnCustomer.FilterInfo = new ColumnFilterInfo("[ShipCountry] = 'Poland'");

See Filter and Search for more information.

The following code snippets (auto-collected from DevExpress Examples) contain references to the FilterInfo 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