BaseListBoxControl.SortOrder Property
Gets or sets the sort order.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v25.1.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 |
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
- Setting the
SortOrderproperty has no effect in bound mode. - The
SortOrderproperty is ignored when you handle theCustomSortevent.
See Also