各位老师,我想实现通过目录树后台加载数据,写了如下代码,结果出现截图错误
Dim Filter As String
If e.node.Text = "显示全部" Then
Filter = ""
Else
Dim dr As DataRow = e.Node.DataRow '获取生成此节点的DataRow
Select Case e.Node.Level
Case 0
Filter = "[园区名称] = '" & dr("园区名称") & "'"
Case 1
Filter = "[园区名称] = '" & dr("园区名称") & "' And [地块名称] = '" & dr("地块名称") & "' "
Case 2
Filter = "[园区名称] = '" & dr("园区名称") & "' And [地块名称] = '" & dr("地块名称") & "' And [监测点] = '" & dr("监测点") & "'"
End Select
End If
DataTables("监控数据").LoadFilter = Filter
DataTables("监控数据").Load()
此主题相关图片如下:qq图片20150711113138.png