DropDownList 绑定数据源

 DropDownList1.DataSource = DataSet.Tables[ "Users"].DefaultView;  
DropDownList1.DataTextField= "UsersName";  
DropDownList1.DataBind();  

你可能感兴趣的:(DropDownList 绑定数据源)