Skip to main content
A newer version of this page is available. .

PivotCellEventArgsBase<TField, TData, TCustomTotal>.GetRowFields() Method

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

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v19.1.Core.dll

Declaration

public TField[] GetRowFields()

Returns

Type Description
TField[]

An array of row fields.

Remarks

The Pivot Grid control supports multiple row fields. Use the GetRowFields method to get the row fields which correspond to the current cell. If the cell belongs to a Row Grand Total, the GetRowFields method returns an empty array (the array’s length is 0).

To get the innermost row field which corresponds to the current cell, use the PivotCellEventArgsBase<TField, TData, TCustomTotal>.RowField property. This property’s value matches the value of the last element in the array returned by the GetRowFields method.

To get any field’s value for the current cell, use the PivotCellEventArgsBase<TField, TData, TCustomTotal>.GetFieldValue method.

See Also