If e.Col.Name = "发货" Then If e.Row.IsNull("发货") = False Then If e.Row("发货") = True AndAlso User.Name <> "秦胜雄" Then e.Cancel = True End If End IfEnd If
想实现发货是空谁都能编辑,如是真就锁定此行且不能删除,只有秦胜雄能修改,请指教。