DataColChanged事件
If e.DataCol.Name = "A列" orElse e.DataCol.Name = "B列" Then
If e.DataRow("A列") <> nothing andalso e.DataRow("B列") <> nothing Then
e.DataRow("个数") = DataTables("表A").Compute("count(A列)","A列 = '"& e.DataRow("A列") &"' and B列 = '"& e.DataRow("B列") &"' and _Identify >= " & e.datarow("_Identify"))
Else
e.DataRow("个数") = nothing
End If
End If
[此贴子已经被作者于2018/1/19 14:28:35编辑过]