只能使用代码处理,不能用在表达式里。
代码类似:
Select Case e.DataCol.name
Case "最大载荷","最小载荷","xx面积"
If e.DataRow("最大载荷") = 0 OrElse e.DataRow("xx面积") = 0
e.DataRow("xx应力") = 0
Else
e.DataRow("xx应力") = Math.Sqrt((e.DataRow("最大载荷") - e.DataRow("最小载荷"))*1000/e.DataRow("xx面积")*2*100*e.DataRow("最大载荷")*1000/e.DataRow("xx面积")*100)
End If
End Select