corelibraries-devexpress-dot-xtrapivotgrid-dot-data-dot-pivotcustomfieldvaluecellseventargsbase-794b81ab.md
Gets the number of rows in the pivot grid.
Namespace : DevExpress.XtraPivotGrid.Data
Assembly : DevExpress.PivotGrid.v25.2.Core.dll
NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation
public int RowCount { get; }
Public ReadOnly Property RowCount As Integer
| Type | Description |
|---|---|
| Int32 |
An integer value that specifies the number of rows in the pivot grid.
|
Use the PivotCustomFieldValueCellsEventArgsBase.ColumnCount property to obtain the number of columns in the pivot grid.
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-pivot-grid-hide-empty-columns-and-rows/CS/Form1.cs#L50
for (int j = 0; j < e.RowCount; j++) {
decimal value = Convert.ToDecimal(e.GetCellValue(columnIndex, j));
winforms-pivot-grid-hide-empty-columns-and-rows/VB/Form1.vb#L58
Private Function IsCollumnEmpty(ByVal columnIndex As Integer, ByVal e As PivotCustomFieldValueCellsEventArgs) As Boolean
For j As Integer = 0 To e.RowCount - 1
Dim value As Decimal = Convert.ToDecimal(e.GetCellValue(columnIndex, j))
See Also
PivotCustomFieldValueCellsEventArgsBase Class