PivotCellEventArgsBase<TField, TData, TCustomTotal>.GetCellValue(TField) Method

Returns a cell value calculated against the specified data field.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v20.2.Core.dll

Declaration

public object GetCellValue(
    TField dataField
)
Public Function GetCellValue(
    dataField As TField
) As Object

Parameters

Name Type Description
dataField TField

A T object that specifies the data field.

Returns

Type Description
Object

A summary value calculated against the specified data field.

Remarks

Using the GetCellValue method makes sense when there are two or more data fields. In this instance, columns (rows) contain sub-columns (sub-rows) that correspond to appropriate data fields (see the image below). The GetCellValue method allows you to obtain a cell value calculated for the same column and row field values as the processed cell value, but against another data field. The dataField parameter identifies the sub-column (sub-row) in which the desired cell resides.

The value of the processed cell can be obtained via the PivotCellEventArgsBase<TField, TData, TCustomTotal>.Value property.

See Also