Skip to main content
A newer version of this page is available. .

PivotGridControl.RetrieveFields() Method

Creates PivotGridField objects for all the fields in the bound data source.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v19.1.dll

Declaration

public void RetrieveFields()

Remarks

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

Use the PivotGridControl.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 that will represent arbitrary data within the PivotGridControl. For more information on unbound fields, refer to the PivotGridFieldBase.UnboundType topic.

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

To learn more about fields, see Pivot Grid Fields.

The following code snippets (auto-collected from DevExpress Examples) contain references to the RetrieveFields() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also