这么写为什么不行呢?在BeforeDeleteDataRow事件。
If e.Row.isnull("姓名") = False OrElse e.Row.isnull("作业指导_指导节数") = False OrElse e.Row.isnull("社团活动_活动节数") = False Then
e.cancel = True
e.Continue = False '取消后续同类操作
Messagebox.Show("本条记录管理人员已填写了信息,如果删除请联系分管领导解决!","提示",MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
[此贴子已经被作者于2022/4/13 17:02:29编辑过]