Skip to main content

XRPivotGrid.RetrieveFields() Method

Creates XRPivotGridField objects for all the fields in the XRPivotGrid‘s bound data source.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.1.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

public void RetrieveFields()

Remarks

This method clears the field collection and adds new XRPivotGridField objects to the collection for all the fields in the control’s bound data source. The XRPivotGridField.FieldName property of each field created is set to the respective bound field’s name. The created fields are made visible and displayed within the Filter Header Area.

Use the XRPivotGrid.Fields property to access the field collection. It allows fields to be added and removed. For instance, you can add an unbound field to the collection which will represent arbitrary data within the XRPivotGrid control. For more information on unbound fields, refer to the PivotGridFieldBase.UnboundType topic in the XtraPivotGrid documentation.

See Also