If e.DataRow.IsNull("采购人员代号") = True Then MessageBox.Show("采购人员代号不允许为空!") e.DataRow("采购人员代号") = e.DataRow.OriginalValue("采购人员代号") e.Cancel = TrueEnd If
参考:
http://www.foxtable.com/help/topics/2369.htm