Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding items to combobox
Message
From
04/10/2005 12:54:59
 
 
To
04/10/2005 10:48:12
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01054999
Message ID:
01055946
Views:
33
Mike,

Try binding to "SelectedValue" instead of "SelectedItem".

~~Bonnie



>I thought I posted the code I needed... Well, let's see... here is how I populate the combobox:
>
>
>Dim activityDV As New DataView(gParmsDS.Tables("parms"))
>activityDV.RowFilter = "parm_type = 'activity'"
>cboActivity.DataSource = activityDV
>cboActivity.DisplayMember = "short_desc"
>cboActivity.ValueMember = "parm_id"
>
>
>Here is the line binding the combobox to my datasource:
>
>
>cboActivity.DataBindings.Add(New Binding("SelectedItem", regDV, "activities"))
>
>
>And I am calling a web service to update my datasource. What other code do you feel I should post? Thanks!
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