Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scan to Item in Combo Based on ValueMember
Message
De
21/10/2003 12:43:39
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00840605
Message ID:
00840721
Vues:
19
>>I specifically want to look through the ValueMember property, selected or not, to find the values index. Then I want to to change the selected index to that index to display. The situation is that I want to open a form by passing a userid that will be used to load/scan to appropriate entry in a combo on the form.<

Ooops, ok, my bad ... the code I showed you searched for the Display member, not the Value Member, but you can modify it to take care of that. Then, simply set the item to be selected, like this:
    MyCombo.Items[i].Selected = true;
~~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