DevExpress-Examples / wpf-pivot-grid-provide-custom-summary-values

This example demonstrates how to determine the value type when you calculate custom summary values in Pivot Grid for WPF.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pivot Grid for WPF - How to Specify Custom Summary Values for Total, Grand Total, and Ordinary Cells

This example demonstrates how to determine the value type when you calculate custom summary values.

Pivot Grid

Files to Review

Example Overview

Follow the steps below to create a custom summary.

  1. Create an ExpressionDataBinding object.

  2. Pass the following expression in its constructor as a parameter:

    iif(IsTotal([fieldColumnGroup]),'Grand Total',IsTotal([fieldRowGroup]),'Grand Total',IsTotal([fieldColumn]),'Total',IsTotal([fieldRow]),'Total',Sum([Data]))
    
  3. Assign the ExpressionDataBinding instance to the fieldData field's DataBinding property.

Documentation

More Examples

How to Create a Custom Summary to Display the Distinct Value Count

About

This example demonstrates how to determine the value type when you calculate custom summary values in Pivot Grid for WPF.

License:Other


Languages

Language:Visual Basic .NET 50.1%Language:C# 49.9%