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.v21.1.dll


public PivotGridField Add(
    string fieldName,
    PivotArea area


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.


Type Description

The PivotGridField object that has been added to the collection.


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

See Also