|
-
Apr 23rd, 2004, 08:36 AM
#1
Thread Starter
Frenzied Member
Combobox binding problem
I've got a combobox on a form that has oledb dataadapter, connection and dataset objects as well. The dataadapter is bound to a table named Clients, and the dataset is filled from there.
I set the combobox's DataSource to ds.Clients, DisplayMember to Name, in the Properties window. Nothing displays though. If I change DataSource to ds.Clients, DisplayMember to Clients.Name, the combobox Text property shows "System.Data.DataViewManagerListItemTypeDescriptor"
If I use code:
cbo.DataSource = ds.Tables("Clients")
cbo.DisplayMember = "Name"
still nothing displays. I'm using VS 2002. What am I missing?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|