Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scan to Item in Combo Based on ValueMember
Message
From
21/10/2003 12:43:39
 
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00840605
Message ID:
00840721
Views:
11
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform