Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotCellBaseEventArgs.GetCellValue(PivotGridField) Method

Returns a cell value calculated for the current column and row field values, against the specified data field.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public object GetCellValue(
    PivotGridField dataField
)

#Parameters

Name Type Description
dataField PivotGridField

A PivotGridField object that specifies the data field, against which the required cell value is calculated.

#Returns

Type Description
Object

Value displayed in the specified cell; null (Nothing in Visual Basic) if the cell has not been found.

#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 PivotCellBaseEventArgs.Value property.

See Also