ASPxPivotGrid.GetRowIndex(Object[]) Method
In This Article
Returns the absolute index of the specified row.
Namespace: DevExpress.Web.ASPxPivotGrid
Assembly: DevExpress.Web.ASPxPivotGrid.v24.2.dll
NuGet Package: DevExpress.Web
#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 absolute row index. -1 if the specified row has not been not found. |
#Remarks
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 |
---|---|---|
ASPx |
ASPx |
2 |
ASPx |
ASPx |
0 |
ASPx |
ASPx |
3 |
To obtain the index of a particular column, use the ASPxPivotGrid.GetColumnIndex method.
See Also