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);