Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
很简单:
1、二者通过合同编号建立关联。
2、在合同明细表的DataColChanged事件设置代码:
if e.DataCol.Name = "合同编号" AndAlso e.DataRow.isNull("合同编号") = False then
if e.DataRow.GetParentRow("合同表") is Nothing Then
Dim dr As DataRow = DataTables("合同表").AddNew()
dr("合同编号") = e.DataRow("合同编号")
end if
end if