当前表事件datacolchanged写入代码:
Select Case e.DataCol.Name
Case "迟到5分钟","迟到10分钟","请假","旷课"
If e.NewValue = True Then
Dim nms() As String = {"迟到5分钟","迟到10分钟","请假","旷课"}
For Each nm As String In nms
If nm <> e.DataCol.Name AndAlso e.DataRow(nm) = True Then
e.DataRow(nm) = False
End If
Next
End If
End Select
[此贴子已经被作者于2018/3/18 12:40:36编辑过]