Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox- show list of suggested values
Message
De
02/01/2004 16:41:20
 
 
À
02/01/2004 16:33:11
Gerald Caussade
Department Mental Health - Missouri
Farmington, Missouri, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00863557
Message ID:
00863568
Vues:
15
>I've got SelectedIndex at -1 and .Text = ""
>
>Still selects the first value in the list and puts it in the "text" box.

Step through it in the debugger. As I said, the ComboBox is pretty funky and it will change things seemingly on it's own. You *do* have your own subclass for this, right? You'll most likely need some more code somewhere in there to handle this better. I don't know where exactly you're encountering this problem, but it partly has to do with the BindingContext's position changing. We've put code in our base classes to unbind and rebind all controls (not all controls need this and so they have empty methods, but the combo definitely needs it) and call those whenever we manually change the BindingContext position ... I don't know if that's the situation you're encountering now, but it's something for you to keep in mind.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform