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

ASPxPivotGrid.RetrieveFields(PivotArea, Boolean) Method

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

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v18.2.dll

Declaration

public void RetrieveFields(
    PivotArea area,
    bool visible
)

Parameters

Name Type Description
area PivotArea

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

visible Boolean

true if the created fields are made visible; otherwise, false.

Remarks

This overload clears the field collection and adds new PivotGridField objects to the collection, for all the fields in the control’s bound data source. The PivotGridField.FieldName property of each field created is set to the respective bound field’s name. The created fields are moved to the area specified by the area parameter. The visible parameter specifies whether the fields are made visible or hidden.

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

See Also