If e.DataCol.name = "检测项目"
If e.DataRow.IsNull("检测项目")
e.DataRow("检测费用") = Nothing
Else
e.DataRow("检测费用") = DataTables("表B").Compute("sum(检测费用)", "检测项目 in ('" & e.DataRow("检测项目").replace(",", "','") & "')")
If Forms("窗口1").Opened Then
Dim sl As Double = val(Forms("窗口1").Controls("TextBox1").text)
If sl > 0 Then e.DataRow("检测费用") = e.DataRow("检测费用") * sl
End If
End If
End If