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 programatically select items in a multiselect ComboBoxBarItem

Thread ID:





71561 Feb 5,2008 09:50 PM UTC Feb 7,2008 06:01 AM UTC WinForms 3
Tags: Tools
Asked On February 5, 2008 09:50 PM UTC

When I programatically select items in a (multiselect) ComboBoxBarItem control by callling the ListBox.SetSelected method, the text displayed in the underlying Textbox remains blank. If the user selects items using the mouse, however, this gets populated with one of the items that is selected.

How can I make sure that the control behaves the same way as it would if the user were to select items using the mouse, but programatically?

Jisha Joy [Syncfusion]
Replied On February 6, 2008 01:09 PM UTC

Hi Andrew,

Thank you for posting your query to us.
I am afraid that I was not able to reproduce the issue. I have created a simple sample to test this issue and it is available in the following link.

Please have a look at the above sample and if still the issue exists, could you please try reproducing it in the above sample or send us the reproducing steps so that we could sort out the cause of the issue and provide you a solution?

Replied On February 6, 2008 06:35 PM UTC

Thanks for your reply.

This was the key statement that I was missing:

this.comboBoxBarItem1.TextBoxValue = this.comboBoxBarItem1.ListBox.Text;

Jisha Joy [Syncfusion]
Replied On February 7, 2008 06:01 AM UTC

Hi Andrew,

Thank you for your update. Glad to hear that the issue has solved.
Thank you for using Syncfusion Products.


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

or the page will be automatically redirected to 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