Skip to main content

PivotCustomFieldValueCellsEventArgs Class

Provides data for the ASPxPivotGrid.CustomFieldValueCells event.

Namespace: DevExpress.Web.ASPxPivotGrid

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

NuGet Package: DevExpress.Web


public class PivotCustomFieldValueCellsEventArgs :


The ASPxPivotGrid.CustomFieldValueCells event occurs when the layout of the PivotGridControl is changed, allowing you to customize column and row headers: field value cells, data field, total and grand total headers.

The PivotCustomFieldValueCellsEventArgs class provides the PivotCustomFieldValueCellsEventArgs.GetCell method used to obtain data related to an individual cell, by its index. This method returns a FieldValueCell object, which provides the data. Use the PivotCustomFieldValueCellsEventArgsBase.GetCellCount method to obtain the total number of field value cells. Column/row headers can also be identified by their column/row. Use the PivotCustomFieldValueCellsEventArgs.FindCell method to obtain the header whose column/row matches a specific condition.

Members of the PivotCustomFieldValueCellsEventArgs class allow you to specify the location of grand total headers. To do this, use the PivotCustomFieldValueCellsEventArgsBase.SetGrandTotalLocation method. To obtain the current location of grand total headers, use the PivotCustomFieldValueCellsEventArgsBase.GetGrandTotalLocation method.

When handling the ASPxPivotGrid.CustomFieldValueCells event, you can also remove individual cells with their nested columns and rows. To do this, use the PivotCustomFieldValueCellsEventArgsBase.Remove method.

The PivotCustomFieldValueCellsEventArgs.Split method allows you to split field value cells that have more than one nested cell. This method splits cells that match the specified condition (or, optionally, only the first matching cell) in a custom manner defined by the FieldValueSplitData objects.


See Also