PivotGridFieldCollection.Add(String, PivotArea) Method

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

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v20.2.dll


public PivotGridField Add(
    string fieldName,
    PivotArea area
Public Function Add(
    fieldName As String,
    area As PivotArea
) As PivotGridField


Name Type Description
fieldName String

A string that identifies the name of the database field that will be assigned to the new PivotGridField object. This value is assigned to the PivotGridFieldBase.FieldName property.

area PivotArea

A PivotArea value that identifies the area in which the new PivotGridField object will be positioned. This value is assigned to the PivotGridFieldBase.Area property.


Type Description

The PivotGridField object that has been added to the collection.


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

See Also