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

PivotGridFieldCollectionBase.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.PivotGrid.v19.1.Core.dll

Declaration

public PivotGridFieldBase 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. 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.

Returns

Type Description
PivotGridFieldBase

The PivotGridFieldBase object added to the collection.

Remarks

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

See Also