If e.DataCol.Name = "出库" OrElse e.DataCol.name = "入库" Then If e.DataRow("结余") < 0 Then MessageBox.show("出库有问题,请检查") End IfEnd If
理由参考:
http://www.foxtable.com/help/topics/0676.htm