Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 2.95 KB

File metadata and controls

46 lines (32 loc) · 2.95 KB

Pivot Grid for Web Forms - 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 Look at

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

Pivot Grid for Web Forms - How to Aggregate Data by the Field's First Value

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)