这个意思?
Select Case e.DataCol.Name
Case "股piao名称","买入_金额","卖出_金额"
Dim fdr As DataRow = e.DataTable.Find("[股piao名称] = '" & e.DataRow("股piao名称") & "'", "[_Identify] Desc")
If fdr IsNot Nothing Then
e.DataTable.replaceFor("仓储_金额1", Nothing, "[股piao名称] = '" & e.DataRow("股piao名称") & "'")
Dim sum1 As Double = e.DataTable.compute("sum(买入_金额)", "[股piao名称] = '" & e.DataRow("股piao名称") & "'")
Dim sum2 As Double = e.DataTable.compute("sum(卖出_金额)", "[股piao名称] = '" & e.DataRow("股piao名称") & "'")
fdr("仓储_金额1") = sum2 - sum1
End If
End Select