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 1
Filter ="[品牌] = \'" & dr("品牌") & "\' And [系列名称] = \'" & dr("系列名称") & "\'
此主题相关图片如下:捕获1.png
And [型号] = \'" & dr("型号") &"\'" End Select
End If
DataTables("商品信息表").LoadFilter = Filter
DataTables("商品信息表").Load()