Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GridColumn.FilterInfo Property

Gets or sets the filter condition applied to the column.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#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.

See Also