object[] SortedItems = new object[DropDownList1.Items.Count]; for (int i = 0; i < SortedItems.Length; i++) { SortedItems[i] = DropDownList1.Items[i]; } Array.Sort(SortedItems); DropDownList1.Items.Clear(); DropDownList1.Items.AddRange(SortedItems);
DropDownList
ArrayList
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)