Skip to main content

ColumnView.ActiveFilter Property

Gets an object which returns information on the filter criteria applied to the View.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v22.2.dll

NuGet Package: DevExpress.Win.Grid


public ViewFilter ActiveFilter { get; }

Property Value

Type Description

A ViewFilter object representing the filter criteria for the current View.


To specify the filter criteria, use the ColumnView.ActiveFilterString or ColumnView.ActiveFilterCriteria property.

The ActiveFilter property of the ViewFilter class provides a number of properties which return details on the current filter criteria applied to the view:

For more information, see the Filter and Search document.


The following code shows how to add a filter condition to a View via its ColumnView.ActiveFilter object. The filter condition selects records whose CategoryName fields start with ‘c’.

using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Columns;
ColumnView view = gridView1;
  new ColumnFilterInfo("[CategoryName] Like 'c%'", ""));
See Also