c# treeview生成树.docx 亲测可用 截一小段代码 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { db sdb = new db("bests"); DataView dv = sdb.sdt("select * from company"); foreach (DataRowView datav in dv) {