Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotCellBaseEventArgs.GetRowFields() Method

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

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public PivotGridField[] GetRowFields()

#Returns

Type Description
PivotGridField[]

An array of row fields.

#Remarks

The PivotGrid control supports multiple row fields. Use the GetRowFields method to get the row fields which correspond to the processed cell. If a 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 processed cell use the PivotCellBaseEventArgs.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 processed cell use the PivotCellBaseEventArgs.GetFieldValue method.

See Also