|
-
Sep 16th, 2005, 04:49 AM
#1
Thread Starter
New Member
complex databinding accepts as a datasource either in Ilist or IListSource
I have to populate the combobox with both text and value. The datasource is a SqlDataReader.
I have used the following code.
cboInst.DataSource = SetInstRec
cboInst.DisplayMember = "ShortName"
cboInst.ValueMember = "Register"
Where 'SetInstRec' is an instace of SqlDataReader. While running this code I am getting the following exception.
"complex databinding accepts as a datasource either in Ilist or IListSource"
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
|