Beispiel #1
0
        private void LoadDpd()
        {
            DataTable dt = new UserInfoBLLlzs().LoadDpdlzs();

            this.DropDownList1.DataSource = dt;
            DataRow dr = dt.NewRow();

            dr[0] = "0";
            dr[1] = "-全部-";
            dt.Rows.InsertAt(dr, 0);
            this.DropDownList1.DataTextField  = "ClassName";
            this.DropDownList1.DataValueField = "ClassId";
            this.DropDownList1.DataBind();
        }