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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to display the selected row information in MultiColumnComboBox?

The MultiColumnComboBox control don’t have direct option to retrieve selected row information and we can be able to get value of DisplayMember column only. So, we need to follow below steps to achieve this requirement.

 

Step 1: Populate the MultiColumnComboBox values from DataTable. The following code demonstrates the same.

 

 

Step 2: Create a class to represent the Selected Row information of MultiColumnComboBox control. The following code demonstrates the same.

 

Code Example: [C#]

 

 

Step 3: Create a generic collection property with type of above Class to hold the Selected Row information.

 

Code Example: [C#]

 

 

Step 4: The SelectedIndexChanged event will raise, when user selects the dropdown items and in here, we can add selected row information into SelectedRowsCollection. The following code demonstrates the same.

 

Code Example: [C#]

 

 

Step 5: Now you can retrieve the saved selected row information from SelectedRowsCollection. The following code demonstrates the same.

 

Code Example: [C#]

 

 

Screenshot

 

Figure 1: Select a row in MultiColumnComboBox.

 

Figure 2: If click the Button, then it will show the selected row information.

 

Sample:

 

C#:  MultiColumnComboBoxSample

 

VB: MultiColumnComboBoxSample

 

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework:
9248 09/05/2018 09/05/2018 WinForms MultiColumnComboBox 4
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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