2016-12-14 44 views

回答

1

的下拉列表實例越來越system.data.datarowview你不指定DataTextFieldDataValueField性能。這些應該是DataTable中列的名稱。

DropDownList1.DataSource = dt; 
DropDownList1.DataTextField = "Column1"; 
DropDownList1.DataValueField = "Column2"; 
DropDownList1.DataBind();