Skip to main content

PivotCustomDrawCellBaseEventArgs.DataField Property

Gets the data field that identifies the current cell.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v24.2.dll

Declaration

public PivotGridField DataField { get; }

Property Value

Type Description
PivotGridField

A PivotGridField object, which specifies the data field that identifies the current cell.

Remarks

To obtain column and row fields that correspond to the processed cell, use the PivotCustomDrawCellBaseEventArgs.GetColumnFields and PivotCustomDrawCellBaseEventArgs.GetRowFields methods respectively. To get values of the fields that identify the processed cell, use the PivotCustomDrawCellBaseEventArgs.GetFieldValue method.

You can also use the PivotCustomDrawCellBaseEventArgs.ColumnField and PivotCustomDrawCellBaseEventArgs.RowField properties to obtain the innermost column and row fields that correspond to the processed cell.

Note

If you try to access the DataField property while an asynchronous operation is being performed, an exception will be thrown. When the operation is in progress, use the PivotCustomDrawCellBaseThreadSafeEventArgs.DataField 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