--
Select Case e.DataCol.Name
Case "产品编码"
If e.NewValue Is Nothing Then
e.DataRow("品名") = Nothing
e.DataRow("客户") = Nothing
e.DataRow("型号") = Nothing
e.DataRow("装箱数量") = Nothing
Else
Dim dr As DataRow
dr = DataTables("产品编码表").Find("(产品编码) = \'" & e.NewValue & "\'")
If dr IsNot Nothing Then
e.DataRow("品名") = dr("品名")
e.DataRow("客户") = dr("客户")
e.DataRow("型号") = dr("型号")
e.DataRow("装箱数量") = dr("装箱数量")
End If
End If
End Select