Select Case e.Datacol.Name
Case "A","B"
e.Datarow("C") = Math.Max(e.Datarow("A"),e.Datarow("B"))
End Select