Base Combo Box ColumnSort Order 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.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
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.
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public ListSortOrder SortOrder { get; set; }VB
Public Property SortOrder As ListSortOrder
Get
SetC++
public:
property ListSortOrder SortOrder {
ListSortOrder get ();
void set (ListSortOrder value);
}F#
member SortOrder : ListSortOrder with get, setProperty Value
ListSortOrderIf 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
| ArgumentException | This is thrown if an attempt is made to set a sort order other than None when a data source is in use. |