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

PivotGridFieldCollection.Add(String, PivotArea) Method

Adds a new field with the specified field name and location to the end of the collection.

Namespace: DevExpress.Web.ASPxPivotGrid

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

Declaration

public PivotGridField Add(
    string fieldName,
    PivotArea area
)

Parameters

Name Type Description
fieldName String

A string that identifies the name of the database field that will be assigned to the new PivotGridField object.

area PivotArea

A PivotArea value that identifies the area in which the new PivotGridField object will be positioned.

Returns

Type Description
PivotGridField

The PivotGridField object that has been added to the collection.

Remarks

This method creates a new PivotGridField object, initializes it with the specified settings and appends it to the collection.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Add(String, PivotArea) 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