Select Case e.DataCol.Name Case "系列" Dim dr1 As String = "*门" Dim dr2 As String = "单包套" Dim dr As DataRow = e.DataRow If dr("系列") like dr1 Then e.DataRow("第五列") = e.DataRow("第二列") * e.DataRow("第三列") ElseIf dr("系列") = dr2 Then e.DataRow("第五列") = e.DataRow("第三列") * e.DataRow("第四列") End If End Select