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

PivotCustomFieldValueCellsEventArgs.GetCellValue(Int32, Int32) Method

Gets the value of a data cell by its column and row indexes.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public object GetCellValue(
    int columnIndex,
    int rowIndex
)

#Parameters

Name Type Description
columnIndex Int32

An integer value that specifies the zero-based index of the column where the cell resides.

rowIndex Int32

An integer value that specifies the zero-based index of the row where the cell resides.

#Returns

Type Description
Object

The value of the data cell with the specified column and row indexes.

#Remarks

Use the PivotCustomFieldValueCellsEventArgs.ColumnCount and PivotCustomFieldValueCellsEventArgs.RowCount properties to obtain the total number of columns and rows in the pivot grid.

Note

Cell values provided by the PivotGridControl.CustomCellValue event cannot be obtained using the GetCellValue method, because the PivotGridControl.CustomFieldValueCells event is raised prior to the PivotGridControl.CustomCellValue.

See Also