为什么不判断A字段有没有为空的值?有就不允许新增。
BeforeAddDataRow事件
If e.DataTable.find("A Is null") IsNot Nothing Then msgbox("A有空值") e.cancel = TrueEnd If