Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseListBoxControl.SortOrder Property

Gets or sets the sort order.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(SortOrder.None)]
[DXCategory("Behavior")]
public SortOrder SortOrder { get; set; }

#Property Value

Type Default Description
SortOrder None

A SortOrder enumeration member that specifies the sort order.

#Remarks

List box controls allow you to sort their items. Set the SortOrder property to SortOrder.Ascending to sort items in ascending order. Set this property to SortOrder.Descending to to sort items in descending order.

Handle the CustomSort event to sort list items in custom order.

Note

  1. Setting the SortOrder property has no effect in bound mode.
  2. The SortOrder property is ignored when you handle the CustomSort event.
See Also