I set DataSource property to a collection already sorted. I do not want MultiSelectionComboBox to re-sort it and to keep the order of the items as it is.
Suppose the collection is called 'myList' of type List<MyItem> as follows:
List<MyItem> myList = new List<MyList>
{
new MyItem { Id = 1, Name = "B"},
new MyItem { Id = 2, Name = "A"},
new MyItem { Id = 3, Name = "C"}
};
And these are the setting of the control called 'mscb':
mscb.DataSource = myList;
mscb.DisplayMember = "Name";
mscb.ValueMember = "Id";
The result will be (A, B, C)!
How to make the items appear in the same order as myList (B, A, C)?