积极答复者
设定DropDownList1数据源并绑定后,DropDownList1列表怎么为空?

问题
-
protected void Page_Load(object sender, EventArgs e)
{
UITA = new Ken_UserInfoTableAdapter();
Response.Write(UITA.GetDataBySortID().Rows.Count.ToString());
this.DropDownList1.DataSource = UITA.GetDataBySortID();
this.DropDownList1.DataTextField = "userName";
this.DropDownList1.DataValueField = "unitID";
this.DropDownList1.DataBind();
}结果DropDownList1列表为空,但是记录数不为0啊,请问为啥会出现这种情况