都一样,万变不离其宗,理解了代码,一通百通:
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