已有的数据,选中SPDM列,重置一下列表DataColChanged
Select Case e.DataCol.Name
Case "SPDM"
If e.DataRow.IsNull("SPDM") Then
e.DataRow("KCSL") = Nothing
Else
Dim pr As DataRow = DataTables("SPCKB").Find("spdm='" & e.NewValue & "' and GG1DM='" & e.DataRow("GG1DM") & "' and GG2DM='" & e.DataRow("GG2DM") & "'")
If pr IsNot Nothing Then
e.DataRow("KCSL") = pr("SL")
End If
End If
End Select
[此贴子已经被作者于2020/6/29 8:11:50编辑过]