Skip to main content

FilterControl.SortFilterColumns Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(true)]
[DXCategory("Behavior")]
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 FilterControl.FilterColumns collection in the order specified by this collection.

The FilterControl.FilterColumns collection is populated with columns automatically when a source control is assigned to the FilterControl.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 FilterControl.FilterColumns collection, when the collection is populated manually via the FilterControl.SetFilterColumnsCollection method.

See Also