Skip to main content
A newer version of this page is available. .

FilterControl.SetFilterColumnsCollection(FilterColumnCollection) Method

Creates filter columns.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public void SetFilterColumnsCollection(
    FilterColumnCollection columns
)

Parameters

Name Type Description
columns DevExpress.XtraEditors.Filtering.FilterColumnCollection

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

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SetFilterColumnsCollection(FilterColumnCollection) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also