Skip to main content

PivotCustomFieldValueCellsEventArgsBase.GetCellValue(Int32, Int32) Method

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

Namespace: DevExpress.XtraPivotGrid.Data

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

NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Dashboard.Design


public object GetCellValue(
    int columnIndex,
    int rowIndex


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.


Type Description

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


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


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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetCellValue(Int32, Int32) method.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also