DataColChanged事件
If e.DataCol.Name = "A" orelse e.DataCol.Name = "B" Then
If e.DataRow.IsNull("A") orelse e.DataRow.IsNull("B") Then
e.DataRow("C") = Nothing
Else
e.DataRow("C") = IIF(e.DataRow("A") < e.DataRow("B"),"错误",nothing)
End If
End If
[此贴子已经被作者于2021/9/11 9:06:45编辑过]