All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

PercentOfTotalBinding Class

Defines the calculation of a percentage of all values in the window.

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v20.1.dll

Declaration

public class PercentOfTotalBinding :
    PercentOfTotalBindingBase
Public Class PercentOfTotalBinding
    Inherits PercentOfTotalBindingBase

Remarks

The following code snippet illustrates how to bind a PivotGrid field to the result of the Percent of Total window calculation.

<dx:PivotGridField ID="PercentOfTotal" Area="DataArea" AreaIndex="0"  Name="PercentOfTotal">
    <DataBindingSerializable>
        <dx:PercentOfTotalBinding PartitioningCriteria="ColumnValue">
            <SourceSerializable>
                <dx:DataSourceColumnBinding ColumnName="Extended_Price" />
            </SourceSerializable>
            </dx:PercentOfTotalBinding>
    </DataBindingSerializable>
    <CellFormat FormatString= "p" FormatType= "Numeric" ></CellFormat>
</dx:PivotGridField>
NOTE

The complete example is available in the GitHub repository: ASP.NET Web Forms Pivot Grid - How to Create Field Calculation Bindings.

For more information, see Data Binding API.

Implements

DevExpress.XtraPivotGrid.IDesignerContextProvider
See Also