windowsforms-devexpress-dot-xtraeditors-dot-baselistboxcontrol-312c174c.md
Gets or sets the sort order.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(SortOrder.None)]
[DXCategory("Behavior")]
public SortOrder SortOrder { get; set; }
<DXCategory("Behavior")>
<DefaultValue(SortOrder.None)>
Public Property SortOrder As SortOrder
| Type | Default | Description |
|---|---|---|
| SortOrder | None |
A SortOrder enumeration member that specifies the sort order.
|
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
SortOrder property has no effect in bound mode.SortOrder property is ignored when you handle the CustomSort event.See Also
BaseCheckedListBoxControl.CustomSort