Foxtable(狐表)用户栏目专家坐堂 → 目录树复选框问题


  共有1655人关注过本帖树形打印复制链接

主题:目录树复选框问题

帅哥哟,离线,有人找我吗?
有点甜
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/6/22 11:40:00 [显示全部帖子]

Dim trv As WinForm.TreeView = e.Sender
Dim flt As String
Dim r As Row = Tables("表A").Current
For Each nd As WinForm.TreeNode In e.node.Nodes
    nd.Checked = False
Next
If e.node.ParentNode IsNot Nothing Then
    e.node.ParentNode.Checked = False
End If
For Each nd As WinForm.TreeNode In trv.AllNodes
    If nd.Checked Then
        If nd.Level = 1 Then
            flt = flt & nd.ParentNode.text & ":" & nd.Text  & vbcrlf
        End If
    End If
Next
r("范围") = flt
[此贴子已经被作者于2018/6/22 11:40:41编辑过]

 回到顶部