Skip to main content
A newer version of this page is available. .

ASPxPivotGrid.GetRowIndex(Object[]) Method

Returns the absolute index of the specified row.

Namespace: DevExpress.Web.ASPxPivotGrid

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

Declaration

public int GetRowIndex(
    object[] values
)

Parameters

Name Type Description
values Object[]

An array of row field values that identify the row.

Returns

Type Description
Int32

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

Remarks

Pivot grid rows and columns are indexed as shown below:

GetColumnIndex

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