BaseListControlSortOrder Property

Gets or sets a value indicating whether the items in the list control are sorted and, if so, in what order.

Definition

Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public ListSortOrder SortOrder { get; set; }

Property Value

ListSortOrder
If set to None (the default), the items in the list control are not sorted. If set to Ascending or Descending the list control sorts existing entries and adds new entries to the appropriate sorted position in the list. You can use this property to automatically sort items in a list control. As items are added to a sorted list control, the items are moved to the appropriate location in the sorted list. When you set the property to None, new items are added to the end of the existing list. The sort is case-insensitive.

Exceptions

ArgumentExceptionThis is thrown if an attempt is made to set a sort order other than None when a data source is in use.

See Also