以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]CreateTree显示名称列  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=194016)

--  作者:2900819580
--  发布时间:2024/11/2 16:20:00
--  [求助]CreateTree显示名称列
cmd.CommandText = "sele ct EmItid,EmPH,EmNM,EmGG from {Emlist} where Fzj = 0 " 
Dim sdt As DataTable = cmd.ExecuteReader

Dim tv1 As WinForm.TreeView = e.Form.Controls("TreeView1")
tv1.CreateTree(sdt, "EmPH", ".", "", "EmPH")

老师,以上代码,显示的只是Emph中的编号分段,我想显示对应的EmNM列,要怎么改。

--  作者:有点蓝
--  发布时间:2024/11/2 16:23:00
--  
http://www.foxtable.com/webhelp/topics/2690.htm,看示例二