Back to Devexpress

PivotCustomDrawCellBaseEventArgs.GetRowFields() Method

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotcustomdrawcellbaseeventargs-a6525e83.md

latest3.3 KB
Original Source

PivotCustomDrawCellBaseEventArgs.GetRowFields() Method

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

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
public PivotGridField[] GetRowFields()
vb
Public Function GetRowFields As PivotGridField()

Returns

TypeDescription
PivotGridField[]

An array of row fields.

|

Remarks

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.

Note

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

GetFieldValue

RowField

PivotCustomDrawCellBaseEventArgs Class

PivotCustomDrawCellBaseEventArgs Members

DevExpress.XtraPivotGrid Namespace