BaseListBoxControl.SortOrder Property

Gets or sets the sort order for the list box control.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(SortOrder.None)]
public SortOrder SortOrder { get; set; }
<DXCategory("Behavior")>
<DefaultValue(SortOrder.None)>
Public Property SortOrder As SortOrder

Property Value

Type Default Description
SortOrder

None

A SortOrder enumeration member specifying the order in which items in the list box control are sorted.

Remarks

List box controls enable you to sort their items. Items are sorted in ascending order, if the SortOrder property is set to SortOrder.Ascending. Alternatively, to sort items in descending order, set this property to SortOrder.Descending.

Note: if the list box control is associated with a data source (functions in bound mode), setting the SortOrder property will have no effect.

See Also