Skip to main content

PivotGridControl.GetCellInfo(Int32, Int32) Method

Returns an object that contains information on the specified cell.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.1.dll

NuGet Package: DevExpress.Wpf.PivotGrid

Declaration

public PivotCellBaseEventArgs GetCellInfo(
    int columnIndex,
    int rowIndex
)

Parameters

Name Type Description
columnIndex Int32

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

rowIndex Int32

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

Returns

Type Description
PivotCellBaseEventArgs

A PivotCellBaseEventArgs object that contains information on the specified cell.

Remarks

The GetCellInfo method returns a PivotCellBaseEventArgs object that contains information on the specified cell. It specifies the type of the cell, the cell’s value and display text, whether it is focused or selected, etc. It also allows an array of records associated with this cell to be retrieved via the PivotCellBaseEventArgs.CreateDrillDownDataSource method.

To identify a cell, pass the indexes of the row and column that contain the cell as the GetCellInfo method parameters. The valid row indexes lie between 0 and PivotGridControl.RowCount - 1. The valid column indexes lie between 0 and PivotGridControl.ColumnCount - 1.

The PivotGridControl.FocusedCell property identifies the indexes of the row and column that contain the focused cell. To get the coordinates of the selected cells, use the PivotGridControl.Selection property.

Use the PivotGridControl.GetFocusedCellInfo method to get information on the focused cell.

See Also