FilterEditorControl.SetFilterColumnsCollection(FilterColumnCollection) Method

Creates filter columns.

Namespace: DevExpress.XtraFilterEditor

Assembly: DevExpress.XtraRichEdit.v20.1.dll


public void SetFilterColumnsCollection(
    FilterColumnCollection columns
Public Sub SetFilterColumnsCollection(
    columns As FilterColumnCollection


Name Type Description
columns DevExpress.XtraEditors.Filtering.FilterColumnCollection

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


The Filter Control is mainly designed to operate with the source control which is assigned via the FilterEditorControl.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 FilterEditorControl.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