Skip to main content

PivotFieldValueEventArgsBase<T>.GetHigherLevelFields() Method

Returns the parent field for the field value currently being processed.

Namespace: DevExpress.XtraPivotGrid

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

NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

#Declaration

public T[] GetHigherLevelFields()

#Returns

Type Description
T[]

An array of PivotGridFieldBase class descendants that specify 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 PivotFieldValueEventArgsBase<T>.GetHigherLevelFields method.

Consider the following example:

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 PivotFieldValueEventArgsBase<T>.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 PivotFieldValueEventArgsBase<T>.GetHigherLevelFieldValue method returns the value ‘Anne Dodsworth’ for this field.
See Also