Dim trv1 As WinForm.TreeView = e.Form.Controls("TreeView1")
Dim trv2 As WinForm.TreeView = e.Form.Controls("TreeView2")
Dim nd1 As WinForm.TreeNode = trv1.SelectedNode
Dim dr As DataRow
dim node as
WinForm.TreeNode = e.node.ParentNode
do while node isnot nothing
node.Checked = False
node = node.ParentNode
loop
For Each cnd As WinForm.TreeNode In e.Node.allNodes '取消子节点的选中标记,因为选中父节点,就不要选中子节点了
cnd.Checked = False