Is it possible to have a custom sort/display order in a combox ? Say I want a special value \"MasterValue\" before all the others.
The following code will do the trick.
Create a separate list of the items you want to sort and then use AddRange.
comboBox1.Items.Add("Master");
List listToSort = new List();
listToSort.Add("6nd");
listToSort.Add("3nd");
listToSort.Add("5nd");
listToSort.Add("4nd");
listToSort.Add("2nd");
listToSort.Sort();
comboBox1.Items.AddRange(listToSort.ToArray());