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

ColumnFilterInfo Class

Contains column filter settings.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

public class ColumnFilterInfo :
    IEquatable<ColumnFilterInfo>

The following members return ColumnFilterInfo objects:

#Remarks

The Data Grid control provides a number of ways to filter data in code. See the Filter and Search topic for more information.

The GridColumn.FilterInfo property allows you to assign a filter to a specific column. Create and initialize a ColumnFilterInfo object via the class constructor and then assign this object to a column’s GridColumn.FilterInfo property.

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'");

#Inheritance

Object
ColumnFilterInfo
See Also