Skip to main content

PivotCustomDrawCellBaseEventArgs.GetRowFields() Method

Returns an array of row fields that correspond to the current cell.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v22.2.dll

NuGet Package: DevExpress.Win.PivotGrid


public PivotGridField[] GetRowFields()


Type Description

An array of row fields.


Pivot Grid Control supports multiple row fields. Use the GetRowFields method to obtain row fields that correspond to the current cell. If this cell belongs to a Row Grand Total, the GetRowFields method returns an empty array.

To obtain the innermost row field that corresponds to the current cell, use the PivotCustomDrawCellBaseEventArgs.RowField property. The PivotCustomDrawCellBaseEventArgs.RowField property value matches the value of the last element in the array returned by the GetRowFields method.

Use the PivotCustomDrawCellBaseEventArgs.GetColumnFields method to obtain an array of column fields that correspond to the current cell.

To obtain field values that correspond to the current cell, use the PivotCustomDrawCellBaseEventArgs.GetFieldValue method.


If you call the GetRowFields method while an asynchronous operation is being performed, an exception will be thrown. To determine whether the operation is in progress, use the pivot grid’s IThreadSafeAccessible.IsAsyncInProgress property. For more information, see Asynchronous Mode.

See Also