Skip to main content

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

public class RankBinding :
    RankBindingBase

Remarks

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">
    <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.

Implements

DevExpress.XtraPivotGrid.IDesignerContextProvider
See Also