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

How to display the selected row information in MultiColumnComboBox?

Platform: WinForms |
Control: MultiColumnComboBox |
Published Date: September 5, 2018 |
Last Revised Date: September 5, 2018 |
.NET Framework: 4

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

 

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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