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.
Unfortunately, activation email could not send to your email. Please try again.

How to keep a ComboBox from having a selected item.

Thread ID:

Created:

Updated:

Platform:

Replies:

298 May 29,2002 08:11 AM May 29,2002 08:57 AM Windows Forms 1
loading
Tags: FAQ
Erik J
Asked On May 29, 2002 08:11 AM

I've successfully bound a combobox to datatable, however, even afer I bind the combo and then set the selectedindex to -1, it still resets itself so the first item (selectedindex 0) is selected. Any thoughts how I can turn off this behavior? Thanks, Erik

Erik J
Replied On May 29, 2002 08:57 AM

While I haven't found a solution to my problem, I have found some information on the net that indicates this isn't possible. A post from an individual claiming to be from Microsoft, basically said the only way to accomplish this was to ensure the first item (index 0) is either null or an empty string and handle that accordingly. If anyone else has found another solution, I'd love to hear it. Thanks, Erik

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.

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.

;