Import Infragistics.Calculations … ’Register a custom function using CustomCalculationFunction Dim absAvg As New CustomCalculationFunction("AbsAvg", Function(x, y) (System.Math.Abs(x) + System.Math.Abs(y)) / 2) calcManager.RegisterUserDefinedFunction(absAvg)