Skip to main content

PivotGridControl.RetrieveFields(FieldArea, Boolean) Method

Creates PivotGridField objects for all fields in a data source, and moves them to the specified area, making them visible or hidden.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll

#Declaration

public void RetrieveFields(
    FieldArea area,
    bool visible
)

#Parameters

Name Type Description
area FieldArea

A FieldArea enumeration value that specifies the area to which the created fields are moved.

visible Boolean

true to show the created fields; otherwise, false.

#Remarks

This overload clears the PivotGridControl.Fields collection and populates it with new PivotGridField objects, created for all fields in a data source. The PivotGridField.FieldName property of each field is set to the name of the corresponding data source field. The created fields are moved to the area specified by the area parameter. The visible parameter specifies whether these fields are made visible or hidden.

To learn more, see Creating Fields and Binding Them to Data Fields.

To create fields asynchronously, use the PivotGridControl.RetrieveFieldsAsync method.

See Also