-- [求助]如何获取后台数据
If e.IsFocusCell Then
If e.Col.Name = "纸张名称" Then
e.Col.ComboList = DataTables("纸张设置").SQLGetComboListString("纸张名称","产品类别 = \'" & e.Row("产品类别") & "\'")
ElseIf e.Col.Name = "产品规格" Then
Dim dr As DataRow
dr = DataTables("纸张设置").SQLFind("产品类别 = \'" & e.Row("产品类别") & "\' and 纸张名称=\'" & e.Row("纸张名称") & "\'")
If dr IsNot Nothing \'一定要判断是否存在对应的行
e.Col.ComboList = dr("规格")
End If
ElseIf e.Col.Name = "单位" Then
Dim dr As DataRow
dr = DataTables("纸张设置").SQLFind("产品类别 = \'" & e.Row("产品类别") & "\' and 纸张名称=\'" & e.Row("纸张名称") & "\'")
If dr IsNot Nothing \'一定要判断是否存在对应的行
e.Col.ComboList = dr("单位")
End If
End If
End If
为什么我上面的代码,获取不取后台数据?有点甜版主,帮忙看下