Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding items to combobox
Message
From
04/10/2005 15:28:40
 
 
To
04/10/2005 15:02:33
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01054999
Message ID:
01056024
Views:
39
>I want to display the "DisplayMember" instead of the "ValueMember"<

Yes, of course, you've already done that by setting the .DisplayMember of the DataSource. But I'm talking about this:
cboActivity.DataBindings.Add(New Binding("SelectedValue", regDV, "activities"))
This has nothing to do with what gets displayed ... this means that when the user selects from the Combo, the .SelectedValue (meaning the what you have in the .ValueMember) gets put in the "activities" column of the regDV DataView. That is what you wanted, isn't it?

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