PivotFieldValueEventArgsBase<T>.GetHigherLevelFields() Method

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

Namespace: DevExpress.XtraPivotGrid

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

Declaration

public T[] GetHigherLevelFields()
Public Function GetHigherLevelFields As T()

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