windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridcells-3c8ea1bd.md
Gets the number of rows in the PivotGrid control.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.XtraPivotGrid.v25.2.dll
NuGet Package : DevExpress.Win.PivotGrid
public int RowCount { get; }
Public ReadOnly Property RowCount As Integer
| Type | Description |
|---|---|
| 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.
List<PivotGridField> fieldsInRowArea = GetFieldsInArea(pivot, PivotArea.RowArea);
for (int i = 0; i < pivot.Cells.RowCount; i++)
{
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