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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to keep a ComboBox from having a selected item.

Thread ID:





298 May 29,2002 12:11 PM UTC May 29,2002 12:57 PM UTC WinForms 1
Tags: FAQ
Erik J
Asked On May 29, 2002 12:11 PM UTC

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 12:57 PM UTC

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


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

Live Chat Icon For mobile
Live Chat Icon