Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding items to combobox
Message
De
04/10/2005 10:11:15
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
03/10/2005 00:53:57
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01054999
Message ID:
01055850
Vues:
17
OK, time to get to the bottom of this problem...

I have a form with multiple controls bound to a dataview. One of these controls is a combobox, whose SelectedItem property is bound to the dataview.

I just set the datasource of the combobox to a different dataview, like so:
        cboActivity.DataSource = activityDV
        cboActivity.DisplayMember = "short_desc"
        cboActivity.ValueMember = "parm_id"
When I do this, it seems to change the text of the bound field to "System.Data.DataRowView". Does anybody know why this is happening?

That's why I was just trying to load the combobox by using items.add. It worked fine when I did it that way, but I need the have a value in the SelectedValue property.

Thanks,
Mike
Very fitting: http://xkcd.com/386/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform