Quantcast
Viewing all articles
Browse latest Browse all 7205

Obsolete: How to use different DataFieldUnboundExpressionMode for different fields in the same PivotGridControl

Update: Starting with version 15.1, it is possible to define the expression calculation mode for individual fields using the PivotGridField.UnboundExpressionMode property. Refer to the S135276: Provide the capability to define DataFieldUnboundExpressionMode at the Data Field level thread for additional information. 

In this example, the DataFieldUnboundExpressionMode property is set to UseSummaryValues. For fields where it is required to calculate unbound values using the standard behavior the CustomUnboundFieldData event is handled. The ExpressionEvaluator.Evaluate method is used to calculate a summary value based on an unbound expression that has been passed.
Since the CustomUnboundFieldData event is not raised for fields with a predefined UnboundExpression Property, unbound expressions for these fields are stored in separate dictionaries, and their UnboundExpression Property is cleared.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>