以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  请问,如何通过数据表中的行,选择相应的目录树上的节点?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=72977)

--  作者:大红袍
--  发布时间:2015/8/10 11:04:00
--  

 这个比较麻烦,要遍历。CurrentChanged事件

 

Dim trv As WinForm.TreeView = forms("窗口1").Controls("TreeView1")
For Each nd As WinForm.TreeNode In trv.AllNodes
    If nd.DataRow("_Identify") = e.Table.Current("_Identify") Then
        trv.SelectedNode = nd
        Exit For
    End If
Next