Skip to main content

ASPxPivotGrid.GetRowIndex(Object[]) Method

Returns the absolute index of the specified row.

Namespace: DevExpress.Web.ASPxPivotGrid

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


public int GetRowIndex(
    object[] values


Name Type Description
values Object[]

An array of row field values that identify the row.


Type Description

An integer value that specifies the absolute row index. -1 if the specified row has not been not found.


Pivot grid rows and columns are indexed as shown below:


If the specified field value array identifies several rows, the GetRowIndex method returns the smallest index.

The following table demonstrates how to use the GetRowIndex method to obtain row indices.

C# Visual Basic Return Value
ASPxPivotGrid1.GetRowIndex(new object[] {"Meat/Poultry"}); ASPxPivotGrid1.GetRowIndex(New Object() {"Meat/Poultry"}) 2
ASPxPivotGrid1.GetRowIndex(new object[] {"Meat/Poultry", "Alice Mutton"}); ASPxPivotGrid1.GetRowIndex(New Object() {"Meat/Poultry", "Alice Mutton"}) 0
ASPxPivotGrid1.GetRowIndex(new object[] {"Produce", "Longlife Tofu"}); ASPxPivotGrid1.GetRowIndex(New Object() {"Produce", "Longlife Tofu"}) 3

To obtain the index of a particular column, use the ASPxPivotGrid.GetColumnIndex method.

See Also