Skip to main content
A newer version of this page is available. .

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

Returns a cell value by the column and row indexes.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v19.1.Core.dll

Declaration

public object GetCellValue(
    int columnIndex,
    int rowIndex
)

Parameters

Name Type Description
columnIndex Int32

A zero-based integer which identifies the visible index of the column.

rowIndex Int32

A zero-based integer which identifies the visible index of the row.

Returns

Type Description
Object

A value displayed in the specified cell.

Remarks

The PivotCellEventArgsBase<TField, TData, TCustomTotal>.ColumnIndex and PivotCellEventArgsBase<TField, TData, TCustomTotal>.RowIndex properties allow you to identify the currently processed cell.

Note

Note that the GetCellValue method returns values calculated based on the data source data and does not take into an account custom cell values provided via the CustomCellValue event. To obtain a custom cell value, use the PivotCellEventArgsBase<TField, TData, TCustomTotal>.Value property.

See Also