This documentation is archived and is not being maintained.

ComboBox.Sorted Property

Gets or sets a value indicating whether the items in the combo box are sorted.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in

public bool Sorted { get; set; }
/** @property */
public boolean get_Sorted ()

/** @property */
public void set_Sorted (boolean value)

public function get Sorted () : boolean

public function set Sorted (value : boolean)

Property Value

true if the combo box is sorted; otherwise, false. The default is false.

Exception typeCondition


An attempt was made to sort a ComboBox that is attached to a data source.

This property specifies whether the ComboBox sorts existing entries and add new entries to the appropriate sorted position in the list. You can use this property to automatically sort items in a ComboBox. As items are added to a sorted ComboBox, the items are moved to the appropriate location in the sorted list. When you set the property to false, new items are added to the end of the existing list. The sort is case-insensitive and in alphabetically ascending order.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0