Reputation: 9081
I used a DataSet
with a column Ref
, I'm trying to bind the values of this column to a dropdownlist
DropDownRef.DataSource = From r In liste.Tables(0).Columns("Ref") Select r
DropDownRef.DataBind()
But it didn't work :(
Upvotes: 0
Views: 49
Reputation: 460238
You are using the DataColumn
as datasource. You need to use the data.
DropDownRef.DataSource = From r In liste.Tables(0).AsEnumerable()
Select r.Field(Of String)("Ref")
Upvotes: 2