DataTable 树形构造加全部

            DataTable dtGx = new DataTable();
            dtGx = SqlHelper.SqlGetDataTable(StrSql, "tbUserGx");
            this.treeListGx.DataSource = dtGx;
            DataRow drGx = dtGx.NewRow();
            drGx["PID"] = 0;
            drGx["FID"] = -1;
            drGx["MID"] = DBNull.Value;
            drGx["Name"] = "全部";
            drGx["CompID"] = DBNull.Value;
            dtGx.Rows.Add(drGx);

 

posted @ 2016-12-29 07:59  一枚水  阅读(3755)  评论(0编辑  收藏  举报