5、将表事件BeforSaveDatarow代码设置为:
If e.DataRow.RowState = DataRowState.Added Then '如果是新增行 e.DataRow("编辑者") = NothingElse Dim cmd As New SQLCommand cmd.CommandText = "Update {员工} Set 编辑者 = Null Where [_Identify] = " & e.DataRow("_Identify") If cmd.ExecuteNonQuery = 1 Then e.DataRow("编辑者") = Nothing End IfEnd If