prav_roy
Well-known member
hi,
i want to bind my list box with datareader
my code look like this
lst.DataSource = Dreader
lst.DisplayMember = "itemname"
lst.ValueMember = "itemno"
i get error saying
Complex databinding accepts as datasource either as IList or IListsource
but if i use dataset i dont get any error
i want to bind my list box with datareader
my code look like this
lst.DataSource = Dreader
lst.DisplayMember = "itemname"
lst.ValueMember = "itemno"
i get error saying
Complex databinding accepts as datasource either as IList or IListsource
but if i use dataset i dont get any error