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.
- Default.aspx (VB: Default.aspx)
- Default.aspx.cs (VB: Default.aspx.vb)
Follow the steps below to create a custom summary.
-
Create an ExpressionDataBinding object.
-
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]))
-
Assign the ExpressionDataBinding instance to the fieldData field's DataBinding property.
Pivot Grid for Web Forms - How to Aggregate Data by the Field's First Value
(you will be redirected to DevExpress.com to submit your response)