Skip to main content

PivotGridCellTemplateItem.GetRowFields() Method

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

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v24.2.dll

Declaration

public PivotGridField[] GetRowFields()

Returns

Type Description
PivotGridField[]

An array of row fields.

Remarks

The ASPxPivotGrid control supports multiple row fields. The GetRowFields method is used 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 PivotGridCellTemplateItem.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 PivotGridCellTemplateItem.GetFieldValue method.

See Also