We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to Disable Alphabetical Sorting in MultiSelectionComboBox WinForms Control

Thread ID:

Created:

Updated:

Platform:

Replies:

151170 Feb 2,2020 11:30 PM UTC Feb 3,2020 01:35 PM UTC WinForms 1
loading
Tags: MultiSelectionComboBox
Mohammed
Asked On February 2, 2020 11:30 PM UTC

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)?


Duraimurugan Vedagiri [Syncfusion]
Replied On February 3, 2020 01:35 PM UTC

Hi Mohammed,

Thanks for your interest in Syncfusion product.

We have considered your requirement as a feature request and it will be included in our upcoming main release.

You can track the status through the following feedback link:

https://www.syncfusion.com/feedback/11745/provide-option-to-enable-or-disable-sorting-in-multiselectioncombobox 

We will let you know once the feature is implemented.

Please let us know if you need any further assistance.

Regards,
Durai 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon