I am generally used to get values from database in sorted order. Here I am required to sort the data from an xml file
so that the values are displayed in ascending order in the combobox.
I thaught of writing code to do the same. found a very simple solution.
Open properties set softed = true
or
cbPrebuilt.Sorted = True
cbPerbiilt is the combobox in the winform i wanted sorted.
|