PivotGridControl.GetRowIndex(Object[]) Method
Returns the index of the specified row.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v25.1.dll
NuGet Package: DevExpress.Wpf.PivotGrid
Declaration
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 row index. -1 if the specified row has not been not found. |
Remarks
Pivot Grid columns and rows 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 indexes.
| Method Usage | Return Value |
|---|---|
pivotGridControl.GetRowIndex("UK") |
0 |
pivotGridControl.GetRowIndex("UK","Anne Dodsworth") |
1 |
pivotGridControl.GetRowIndex("UK","Michael Suyama") |
2 |
To obtain the index of a particular column, use the PivotGridControl.GetColumnIndex method.
See Also