1、参考:
http://www.foxtable.com/help/topics/0633.htm
在这个事件中找出另一个表对应的行,然后删除之即可。
2、多列填充:
Select Case e.DataCol.Name
Case "产品名称"
If e.NewValue > "" Then
Dim dr As DataRow
If e.OldValue > "" Then
dr = DataTables("库存").Find("产品名称 = '" & e.OldValue & "'")
End If
If dr Is Nothing Then
dr = DataTables("库存").AddNew()
End If
dr("产品名称") = e.NewValue
End If
Case "其他列1","其他列2","其他列3"
Dim dr As DataRow
dr = DataTables("库存").Find("产品名称 = '" & e.DataRow("产品名称") & "'")
If dr IsNot Nothing Then
dr(e.DataCol.name) = e.newValue
End If
End Select