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.v20.1.Core.dll

Declaration

public object GetCellValue(
    int columnIndex,
    int rowIndex
)
Public Function GetCellValue(
    columnIndex As Integer,
    rowIndex As Integer
) As Object

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 PivotCustomFieldValueCellsEventArgsBase.ColumnCount and PivotCustomFieldValueCellsEventArgsBase.RowCount properties to obtain the total number of columns and rows in the pivot grid.

NOTE

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

See Also