If the currently processed header corresponds to a custom total the ValueType property returns the FieldValueType.CustomTotal value and the CustomTotal property returns a PivotGridCustomTotal object which represents this custom total.
If the currently processed header doesn't correspond to a custom total the CustomTotal property returns null.