FilterEditorControl.SortFilterColumns Property

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

Namespace: DevExpress.XtraFilterEditor

Assembly: DevExpress.XtraRichEdit.v20.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(true)]
public bool SortFilterColumns { get; set; }
<DXCategory("Appearance")>
<DefaultValue(True)>
Public Property SortFilterColumns As Boolean

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