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

PivotFieldImageIndexEventArgs.GetCellValue(Int32, Int32) Method

Returns a value displayed in a cell with the specified column and row indexes.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v22.1.dll

NuGet Package: DevExpress.Win.PivotGrid

Declaration

public object GetCellValue(
    int columnIndex,
    int rowIndex
)

Parameters

Name Type Description
columnIndex Int32

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

rowIndex Int32

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

Returns

Type Description
Object

A value displayed in the specified cell.

Remarks

When an event is raised for a column field‘s value, the columnIndex parameter can be set to a value in the range [PivotFieldImageIndexEventArgs.MinIndex; PivotFieldImageIndexEventArgs.MaxIndex]. The rowIndex parameter can be set to any value in the range [0; PivotGridControl.Cells.RowCount-1].

When an event is raised for a row field‘s value, the rowIndex parameter can be set to a value in the range [PivotFieldImageIndexEventArgs.MinIndex; PivotFieldImageIndexEventArgs.MaxIndex]. The columnIndex parameter can be set to any value in the range [0; PivotGridControl.Cells.ColumnCount-1].

Note

If you call the GetCellValue method while an asynchronous operation is being performed, an exception will be thrown. To determine whether the operation is in progress, use the pivot grid’s IThreadSafeAccessible.IsAsyncInProgress property. For more information, see Asynchronous Mode.

See Also