Below is my code ...
DropDownList2.DataSource = td.DataSet DropDownList2.DataSource = td DropDownList2.DataTextField = td.Columns ("Name"). ColumnName.ToString DropDownList2.DataValueField = td.Columns ("VendorCode"). ColumnName.ToString DropDownList2.DataBind ()
Now I have a requirement to show the type of provider and the name of the supplier in the drop-down list. The supplier type can be obtained using this statement ...
td.Columns ("VendorType"). ColumnName.ToString
Can this be done? Please, help
Kwah009
source
share