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

PivotFieldValueEventArgs.GetCellValue(Int32, Int32) Method

Returns a value displayed in the specified cell.

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

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

When an event is raised for a column field‘s value, the columnIndex parameter can be set to a value in the range [PivotFieldValueEventArgs.MinIndex; PivotFieldValueEventArgs.MaxIndex]. The rowIndex parameter can be set to any value in the range [0; PivotGridControl.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 [PivotFieldValueEventArgs.MinIndex; PivotFieldValueEventArgs.MaxIndex]. The columnIndex parameter can be set to any value in the range [0; PivotGridControl.ColumnCount-1].

See Also