Skip to main content

RankBinding Class

Defines the calculation of a ranking in the window.

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v23.2.dll

NuGet Package: DevExpress.Web


public class RankBinding :


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

  1. Create an instance of the RankBinding class with the Source property set to the DevExpress.XtraPivotGrid.DataBindingBase descendant instance.
  2. Specify the window frame.
  3. Assign the RankBinding instance to the PivotGridFieldBase.DataBinding property.

The example below shows how to use RankBinding to rank product sales in categories.

View Example

 <dx:PivotGridField ID="fieldRank" Area="DataArea" AreaIndex="1"  Name="fieldRank" Caption="Rank">
       <dx:RankBinding RankType="Unique" Order="Descending" PartitioningCriteria="ColumnValueAndRowParentValue" >
               <dx:DataSourceColumnBinding ColumnName="Extended Price" />
    <CellFormat FormatType="Numeric"></CellFormat>

See the following topic for more information: Data Binding API.


See Also