e.node.text 和 e.node.name的区别 Post By:2014/12/8 19:48:00 [只看该作者]
我为表做一个筛选树,在AfterSelectNode中写代码:
Dim Filter As String Dim dr As DataRow = e.Node.DataRow If e.node.Text <> "显示所有行" Then Dim Province As String = dr("省份") Dim Hospital As String = dr("医院名称") Select Case e.Node.Level Case 0 Filter = "省份 = '" & Province & "'" Case 1 Filter = "省份 = '" & Province & "'And 医院名称 = '" & Hospital & "'" End Select End If Tables("主界面_设备安装表").Filter = Filter