订单明细表也得写代码
DataRowDeleting事件:
e.datarow("备注") = nothing
datacolchanged事件:
if e.datacol.name = "备注" then
dim dr As datarow = e.DataRow.GetParentRow("订单")
if dr snot nothing then
datatables("订单").dataCols("订单号").RaiseDataColChanged(dr)
end if
end if
[此贴子已经被作者于2015/4/27 10:33:04编辑过]