A newer version of this page is available.

FilterEditorControl.FilterColumns Property

Gets a filter column collection.

Namespace: DevExpress.XtraFilterEditor

Assembly: DevExpress.XtraRichEdit.v19.2.dll


public FilterColumnCollection FilterColumns { get; }
Public ReadOnly Property FilterColumns As FilterColumnCollection

Property Value

Type Description

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


When a source control is assigned to the FilterEditorControl.SourceControl property, the FilterColumns collection is automatically populated with the source control's columns. By default, the FilterEditorControl.SortFilterColumns property is set to true, and this ensures that the created columns in the collection will be sorted by captions in ascending order. Subsequent changes to the FilterEditorControl.SortFilterColumns property don't re-sort the column collection.

A FilterEditorControl supports unbound mode. When the control is not bound to any source control, it still allows an end-user to construct filter criteria. In this instance, columns must be added to the FilterColumns collection manually via the FilterEditorControl.SetFilterColumnsCollection method. See the 'Filter Control' module in the XtraGrid's Main Demo for an example.

See Also