Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding items to combobox
Message
From
04/10/2005 10:11:15
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
03/10/2005 00:53:57
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01054999
Message ID:
01055850
Views:
15
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/
Previous
Reply
Map
View

Click here to load this message in the networking platform