Back to Devexpress

Data Binding API

corelibraries-401533-devexpress-pivot-grid-core-library-data-binding-api.md

latest9.2 KB
Original Source

Data Binding API

  • Nov 06, 2023
  • 3 minutes to read

Overview

Pivot Grid uses the Binding API to bind Pivot Grid fields to data. Data binding sources can be columns in a data source, calculated expressions, or window calculations.

The following types of bindings are available:

Column Binding Allows you to bind a Pivot Grid field to a data column in the data source. The Pivot Grid field obtains its values from a field in the data source.Expression BindingAllows you to bind a Pivot Grid field to an expression and display the calculated result. The expression can be a formula or an aggregate function.Calculation BindingAllows you to bind a Pivot Grid field to a window calculation and display aggregated values in the window.

Each specified binding object is a DataBindingBase descendant. This object is assigned to the Pivot Grid field’s DataBinding property.

The following table illustrates Pivot Grid data processing modes that support the Binding API:

Legacy and Legacy OptimizedOptimizedServer modeOLAP
Column Binding
Expression Binding
Calculation Binding

Refer to the following article for more information about data processing modes: Pivot Grid Data Processing Modes.

Column Binding

The following table illustrates the Binding API that can be used in Optimized , Server , and OLAP modes:

PlatformClass
WinFormsDataSourceColumnBinding
WPFDataSourceColumnBinding
ASP.NET Web FormsDataSourceColumnBinding

Expression Binding

The tables below illustrate the Binding API that can be used in different Pivot Grid modes.

Optimized and Server modes:

PlatformClass
WinFormsExpressionDataBinding
WPFExpressionDataBinding
ASP.NET Web FormsExpressionDataBinding

OLAP mode:

PlatformClass
WinFormsOLAPExpressionBinding
WPFOlapExpressionBinding
ASP.NET Web FormsOLAPExpressionBinding

Calculation Binding

The following table illustrates the Binding API that can be used in Optimized mode:

WinFormsWPFASP.NET
RankBindingRankBindingRankBinding
MovingCalculationBindingMovingCalculationBindingMovingCalculationBinding
DifferenceBindingDifferenceBindingDifferenceBinding
PercentOfTotalBindingPercentOfTotalBindingPercentOfTotalBinding
RunningTotalBindingRunningTotalBindingRunningTotalBinding
WindowExpressionBindingWindowExpressionBindingWindowExpressionBinding

More Documentation

Refer to the Platform-specific topics for more information on how to use the Data Binding API:

Pivot Grid for WinForms

Bind Pivot Grid Fields to Data Columns

Bind Pivot Grid Fields to Calculated Expressions

Bind Pivot Grid Fields to Window Calculations

Pivot Grid for WPF

Bind Pivot Grid Fields to Data Columns

Bind Pivot Grid Fields to Calculated Expressions

Bind Pivot Grid Fields to Window Calculations

ASP.NET Web Forms Pivot Grid

Bind Pivot Grid Fields to Data Columns

Bind Pivot Grid Fields to Calculated Expressions

Bind Pivot Grid Fields to Window Calculations

Demos

Examples

Pivot Grid for WinForms

How to Aggregate Data by the Field’s First Value

How to connect a Pivot Grid to an OLAP Data Source

LINQ to SQL - a Server Mode Example

Custom Group Intervals

How to Change SummaryDisplayType in the Context Menu

Pivot Grid for WPF

Field Calculation Data Binding

Bind a PivotGrid to an MS Access Database at Runtime

Bind a PivotGrid to an OLAP Cube

Custom Group Intervals

How to Change SummaryDisplayType in the Context Menu

ASP.NET Web Forms Pivot Grid

Field Calculation Data Binding

How to Aggregate Data by the Field’s First Value

How to Add Calculated Fields

How to Change the SummaryDisplayType

See Also

Pivot Grid Expression Syntax