参考:http://www.foxtable.com/webhelp/scr/1451.htm
表1、DataColChanged事件
Dim dr As DataRow = e.DataRow
Select Case e.DataCol.Name
Case "开piao价","底价","税率"
Dim dr As DataRow = DataTables("表2").find("编号='" & 编号 & "'")
If dr IsNot Nothing Then
dr("结算价") = (e.DataRow("开piao价") - e.DataRow("底价")) * e.DataRow("税率") + e.DataRow("底价")
End If
End Select