aspnet-devexpress-dot-web-dot-aspxpivotgrid-e4d40d3a.md
Defines the calculation of a ranking in the window.
Namespace : DevExpress.Web.ASPxPivotGrid
Assembly : DevExpress.Web.ASPxPivotGrid.v25.2.dll
NuGet Package : DevExpress.Web
public class RankBinding :
RankBindingBase
Public Class RankBinding
Inherits RankBindingBase
The following code snippet illustrates how to bind a PivotGrid field to the result of the Rank window calculation.
RankBinding class with the Source property set to the DevExpress.XtraPivotGrid.DataBindingBase descendant instance.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.
DevExpress.XtraPivotGrid.IDesignerContextProvider
Object DataBindingBase CalculationBindingBase RankBindingBase RankBinding
See Also