PivotCustomDrawCellBaseEventArgs.RowField Property

Gets the innermost row field that corresponds to the current cell.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v20.1.dll


public PivotGridField RowField { get; }
Public ReadOnly Property RowField As PivotGridField

Property Value

Type Description

A PivotGridField object that specifies the row field.


If the current cell resides within a Row Grand Total, the RowField property returns null. Otherwise, this property returns the innermost row field that corresponds to the current cell.

Use the PivotCustomDrawCellBaseEventArgs.GetRowFields method to obtain all row fields that correspond to the current cell.

To obtain the corresponding column fields, use the PivotCustomDrawCellBaseEventArgs.ColumnField property and PivotCustomDrawCellBaseEventArgs.GetColumnFields method respectively.

To determine which data field identifies the current cell, use the PivotCustomDrawCellBaseEventArgs.DataField property.


If you try to access the RowField property while an asynchronous operation is being performed, an exception will be thrown. When the operation is in progress, use the PivotCustomDrawCellBaseThreadSafeEventArgs.RowField property exposed by a thread-safe event parameter instead. To access the thread-safe event parameter, use the PivotCustomDrawCellBaseEventArgs.ThreadSafeArgs property. To determine whether an asynchronous operation is being performed, use the pivot grid's IThreadSafeAccessible.IsAsyncInProgress property. For more information, see Asynchronous Mode.

See Also