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

FilterControl.SetFilterColumnsCollection(FilterColumnCollection, IDXMenuManager) Method

Creates filter columns.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void SetFilterColumnsCollection(
    FilterColumnCollection columns,
    IDXMenuManager manager
)

#Parameters

Name Type Description
columns DevExpress.XtraEditors.Filtering.FilterColumnCollection

A DevExpress.XtraEditors.Filtering.FilterColumnCollection object that represents the collection of filter columns.

manager DevExpress.Utils.Menu.IDXMenuManager

An object which represents the menu manager which controls the look and feel of the context menus.

#Remarks

The Filter Control is mainly designed to operate with the source control which is assigned via the FilterControl.SourceControl property. In this instance, after a source control has been assigned to the Filter Control, the filter columns are automatically retrieved from the source control. If the source control isn’t specified, these should be defined manually. To do this, use the SetFilterColumnsCollection method.

The SetFilterColumnsCollection method clears the Filter Control‘s FilterControl.FilterColumns collection and populates it with columns retrieved from the columns parameter. To view an example, see the ‘Filter Control’ module in the XtraGrid’s Main Demo.

See Also