Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox- show list of suggested values
Message
De
02/01/2004 17:11:39
 
 
À
02/01/2004 17:00:51
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:
00863576
Vues:
19
>>Are you suggesting that you bind and unbind every time the position changes?<

It depends on what you are doing, but yes, if you have any navigational controls on your form where you're manually changing the position.

>I am setting Selectedindex to -1 after Initialize(); <

First of all, you shouldn't have to manually set SelectedIndex at this point. Do you have a DataBind() method like I think I've mentioned before? The DataBind should be called when the form is loading, not initializing. Don't ask me why it matters, but it does. <g> Once your controls are databound, after the form has been loaded, then your controls should be populated correctly.

Again, step through all this in the debugger (as much as a PITA as it is) ... it'll help you see what's happening and when. Oh, one more thing, if you don't specifically set a breakpoint in EventHandlers, the debugger won't step through them.

~~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