你这个用代码就能轻易解决,编写datacolchanged事件
Select Case e.DataCol.name Case "占比A", "占比B" Dim ma As Double = e.DataTable.Compute("max(占比A)") Dim mb As Double = e.DataTable.Compute("max(占比B)") e.DataRow("分析结果") = e.DataRow("占比A") - (ma / mb * e.DataRow("占比B"))End Select