计算代码Dim m As Integer = e.DataRow("A")m = Math.Max(m, e.DataRow("B"))m = Math.Max(m, e.DataRow("C"))m = Math.Max(m, e.DataRow("D"))e.DataRow("最大值") = m