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 programmatically select an item in MultiSelectionComboBox?

Thread ID:





128766 Feb 10,2017 12:21 AM UTC May 3,2017 05:58 AM UTC WinForms 3
Tags: MultiSelectionComboBox
Jonathan Martineau
Asked On February 10, 2017 12:21 AM UTC

How to programmatically Select an Item in MultiSelectionComboBox? Only one.

Keerthana Jegannathan [Syncfusion]
Replied On February 10, 2017 11:03 AM UTC

Hi Jonathan,   
Thank you for contacting Syncfusion support.   
We suspect your requirement is to select the item programmatically in the MultiSelectionComboBox. If so your requirement can be achieved by using the function named “AddVisualItem”. We have prepared a sample in which you can select an item through button click and it can be downloaded from the below location.   
Sample: MultiSelectionComboBox   
Keerthana J   

Felix Bagur
Replied On May 2, 2017 10:53 AM UTC

I think the only way to select an element is:
You must filter the datatable according to its definition, in my case I have a column called "pk".
Then select all the elements (filtered)
And finally put back the original items.

Dim tmp As DataTable = MultiSelectionComboBox1.DataSource()

MultiSelectionComboBox1.DataSource = CType(Me.DataSource, DataTable).Select("pk=2").CopyToDataTable


MultiSelectionComboBox1.DataSource = tmp

Vinothini [Syncfusion]
Replied On May 3, 2017 05:58 AM UTC

Hi Felix, 
Thank you for your update.  
We can also select item in MultiSelectionComboBox using DataTable as you have mentioned in your update. This can also be done by SelectedItem and AddVisualtem property available in the MultiSelectionComboBox as given in our previous update. 


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