http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.sorted.aspx
With MS Combo I can first sort existing items with Sorted = True then turn Sorted = False and add any other item to the top or bottom of the list without further affecting the sort.
With UltraComboEditor I can't replicate turning on/off sorting to get the same functionality. Setting the SortStyle to None will put the display back to unsorted.
SortStyle = ValueListSortStyle.Ascending
Hello ,
As far as I understand you was able to solve your issue based on my suggestion.
Please let me know if you have any further questions.
Have you tried simply leave the SortStyle set to Ascending or Descending and adding new items? I might be wrong, but I thought the sorting is a one-time thing and that the ValueList will not sort any new items you add to the list.
If I am wrong, then you might want to consider trying the same thing with UltraCombo. I am pretty sure that UltraCombo works that way - new items are not automatically sorted when you add them to the list.
12.1.20121.1001 I got it to work with this
Adding items
cbo.SortStyle = ValueListSortStyle.Ascending cbo.SortStyle = ValueListSortStyle.None
Add new item on top unsorted
-----------------------
Previously this will not work: the result was unsorted for the (Add Items section)
So yes, sorting is a one-time thing. The description could be made more clearer since it just says setting the SortStyle.
cbo.SortStyle = ValueListSortStyle.Ascending
Add Items
cbo.SortStyle = ValueListSortStyle.None
Add new item on top
I have tested your scenario with Infragistics 12.1 service release 2038 (the latest service release). So when I set SortStyle of UltraCombo to None I am getting the same behavior as ComboBox. In the attached zip you will find sample and a video of my test.
Please let me know if you have any further questions or if I am missing something.