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.v20.1.Core.dll
NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.WindowsDesktop.PivotGrid.Core
Declaration
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.