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

ColumnView.ApplyColumnsFilter() Method

In This Article

Enables the filtering functionality.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

public virtual void ApplyColumnsFilter()

#Remarks

This method sets the ColumnView.ActiveFilterEnabled property to true and thus enables the filtering functionality.

By default the filtering functionality is enabled and if filter criteria are set the View displays only those records from the data source which meet the criteria. Otherwise, the View displays all the records from the underlying data source. To temporarily disable the filtering functionality, the ColumnView.ActiveFilterEnabled property can be set to false.

Use the ColumnView.ActiveFilter object to get the filter criteria applied to the View.

An end-user can enable/disable the filter criteria by toggling the checkbox within the Filter Panel.

See Also