Skip to main content

PivotCustomDrawCellBaseEventArgs.RowField Property

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

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v23.2.dll

NuGet Package: DevExpress.Win.PivotGrid

Declaration

public PivotGridField RowField { get; }

Property Value

Type Description
PivotGridField

A PivotGridField object that specifies the row field.

Remarks

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.

Note

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