DropDownList Dataset绑定
private void ddl_StuSexBind()
{
_Stu_InfoBLL = new StuInfoManage();
DataSet ds = _Stu_InfoBLL.GetStuInfoList("");
foreach (DataRow dr in ds.Tables[0].Rows)
{
ddl_Stu_Num.Items.Add(new ListItem(dr["Stu_Name"].ToString() + "(" + dr["Stu_Num"].ToString() + ")", dr["ID"].ToString()));
}
ddl_Stu_Num.Items.Insert(0, new ListItem("--请选择--", "--请选择--"));
}