Skip to main content
A newer version of this page is available.
All docs
V19.1

FilterEditorControl.SortFilterColumns Property

Gets or sets whether column captions appear sorted in the FilterEditorControl‘s menus.

Namespace: DevExpress.XtraFilterEditor

Assembly: DevExpress.XtraRichEdit.v19.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(true)]
public bool SortFilterColumns { get; set; }

Property Value

Type Default Description
Boolean **true**

true to sort column captions; otherwise, false.

Remarks

When creating a new filter condition, an end-user can select a column to be filtered from a menu displaying all available columns. The menu displays columns from the FilterEditorControl.FilterColumns collection in the order specified by this collection.

The FilterEditorControl.FilterColumns collection is populated with columns automatically when a source control is assigned to the FilterEditorControl.SourceControl property. In this instance, the SortFilterColumns property affects the order of columns being created. If the SortFilterColumns property is set to true, columns in the collection are sorted by captions in ascending order. Otherwise, columns are added to the collection in the order as specified by the source control.

The SortFilterColumns property also affects the order of columns in the FilterEditorControl.FilterColumns collection, when the collection is populated manually via the FilterEditorControl.SetFilterColumnsCollection method.

See Also