这个控制太多了,自己检查吧,比如下面dctpc触发更改"dclcf","dclcf"的更改又触发"dcharbourdensity"的更改,一层一层,最后其它地方又导致dctpc触发,现成一个闭环,就是死循环了
Select Case e.DataCol.Name
Case "dctpc","clcf" ''dclcf获取公式
If e.DataRow.IsNull("dctpc") And e.DataRow.IsNull("clcf") Then
e.DataRow("dclcf") = Nothing
Else
e.DataRow("dclcf") = e.DataRow("dctpc")+e.DataRow("clcf")
End If
End Select
Select Case e.DataCol.Name
Case "dclcf","harbourdensity","tabledensity" ''dcharbourdensity获取公式
If e.DataRow.IsNull("dclcf") And e.DataRow.IsNull("harbourdensity") And e.DataRow.IsNull("tabledensity") Then
e.DataRow("dcharbourdensity") = Nothing
Else
e.DataRow("dcharbourdensity") = e.DataRow("dclcf")*e.DataRow("harbourdensity")/e.DataRow("tabledensity")
End If
End Select