Hello,
I exactly did the same thing ... sorry of course no loop in the first place
.... but then I used looping. Still error :
Error:
Additional information: Complex DataBinding accepts as a data source either
an IList or an IListSource
also i don't have something like:
cboTest.DataBind() ????
TA
"mphacker" <mp******@sitedevelopers.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
You are a bit off on your idea.
You need to set:
cboTest.DataSource=reader
cboTest.DisplayMember="au_lname"
cboTest.ValueMember="au_id"
cboTest.DataBind()
no need to loop :-)
Mike
Annie wrote: hello guys,
I am trying to bind the combobox using a dataread as below: but it
doesn't
work??
Do While (reader.Read)
cboTest.DisplayMember = reader.Item("au_lname")
cboTest.ValueMember = reader.Item("au_id")
Loop
what is wrong here?
help please ...