Skip to main content

PivotFieldStateChangedEventArgs.GetHigherLevelFields() Method

Returns the parent field(s) for the field value being currently processed.

Namespace: DevExpress.Web.ASPxPivotGrid

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

NuGet Package: DevExpress.Web

Declaration

public PivotGridField[] GetHigherLevelFields()

Returns

Type Description
PivotGridField[]

An array of PivotGridField objects that represent parent fields for the field value currently being processed.

Remarks

This method returns parent fields corresponding to the current field value. To get values of these fields, use the PivotFieldStateChangedEventArgs.GetHigherLevelFieldValue method.

Consider the following example:

pivotgrid_GetHigherLevelFields

  • For the ‘1994’ and ‘Andrew Fuller’ field values, the GetHigherLevelFields method returns an empty array.
  • For the ‘Qtr4’ field value, the GetHigherLevelFields method returns an array consisting of a single element referring to the Year field. The PivotFieldStateChangedEventArgs.GetHigherLevelFieldValue method returns the value ‘1994’ for this field.
  • For the ‘Confections’ field value in the last row, the GetHigherLevelFields method returns an array consisting of a single element referring to the Sales Person field. The PivotFieldStateChangedEventArgs.GetHigherLevelFieldValue method returns the value ‘Anne Dodsworth’ for this field.
See Also