Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding items to combobox
Message
De
04/10/2005 12:54:59
 
 
À
04/10/2005 10:48:12
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01054999
Message ID:
01055946
Vues:
35
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform