Back to Devexpress

PivotGridCells.RowCount Property

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridcells-3c8ea1bd.md

latest2.8 KB
Original Source

PivotGridCells.RowCount Property

Gets the number of rows in the PivotGrid control.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
public int RowCount { get; }
vb
Public ReadOnly Property RowCount As Integer

Property Value

TypeDescription
Int32

An integer which is the number of rows displayed within the PivotGrid control.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RowCount property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-create-a-custom-exporter-for-pivotgridcontrol-with-xtrareport/CS/Report_at_Runtime/PivotReportGenerator.cs#L43

csharp
List<PivotGridField> fieldsInRowArea = GetFieldsInArea(pivot, PivotArea.RowArea);
for (int i = 0; i < pivot.Cells.RowCount; i++)
{

winforms-create-a-custom-exporter-for-pivotgridcontrol-with-xtrareport/VB/Report_at_Runtime/PivotReportGenerator.vb#L42

vb
Dim fieldsInRowArea As System.Collections.Generic.List(Of DevExpress.XtraPivotGrid.PivotGridField) = PivotReportGenerator.GetFieldsInArea(pivot, DevExpress.XtraPivotGrid.PivotArea.RowArea)
For i As Integer = 0 To pivot.Cells.RowCount - 1
    Dim pcea As DevExpress.XtraPivotGrid.PivotCellEventArgs = pivot.Cells.GetCellInfo(0, i)

See Also

ColumnCount

PivotGridCells Class

PivotGridCells Members

DevExpress.XtraPivotGrid Namespace