BeforeADDDateRows:
If e.DataRow.GetParentRow("订单表")("订单状态") > "待确认" Then
MessageBox.Show("已确认的订单不能新增明细!")e.Cancel = True End If
出错!
.NET Framework 版本:2.0.50727.5477Foxtable 版本:2014.7.24.1错误所在事件:订单明细表,BeforeAddDataRow详细错误信息:未将对象引用设置到对象的实例。
注释掉就没有问题!