RankBinding Class
Defines the calculation of a ranking in the window.
Namespace: DevExpress.Web.ASPxPivotGrid
Assembly: DevExpress.Web.ASPxPivotGrid.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Remarks
The following code snippet illustrates how to bind a PivotGrid field to the result of the Rank window calculation.
- Create an instance of the
RankBinding
class with the Source property set to the DevExpress.XtraPivotGrid.DataBindingBase descendant instance. - Specify the window frame.
- Assign the
RankBinding
instance to the PivotGridFieldBase.DataBinding property.
The example below shows how to use RankBinding
to rank product sales in categories.
<dx:PivotGridField ID="fieldRank" Area="DataArea" AreaIndex="1" Name="fieldRank" Caption="Rank">
<DataBindingSerializable>
<dx:RankBinding RankType="Unique" Order="Descending" PartitioningCriteria="ColumnValueAndRowParentValue" >
<SourceSerializable>
<dx:DataSourceColumnBinding ColumnName="Extended Price" />
</SourceSerializable>
</dx:RankBinding>
</DataBindingSerializable>
<CellFormat FormatType="Numeric"></CellFormat>
</dx:PivotGridField>
See the following topic for more information: Data Binding API.
Inheritance
See Also