Skip to content

DevExpress-Examples/winforms-pivot-grid-custom-aggregates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

This example shows how to aggregate data by the field's first value.

Files to Review

Overview

This example adds the FirstValue([ProductName]) expression to the First Sold Product field. The expression returns the first sold product by Sales Persons in each product category.

first value function

Data Field Expression
First Sold Product FirstValue([ProductName])

Call the CriteriaOperator.RegisterCustomFunction method to register a custom function in your project (see Program.cs/Program.vb)

Documentation

More Examples

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