In System.Windows.Forms.DataGridView
it is DataGridView.Rows.Count
. But how can I get Dev Express GridView's rows count?
Asked
Active
Viewed 1.5k times
4

Ivar
- 6,138
- 12
- 49
- 61

Vano Maisuradze
- 5,829
- 6
- 45
- 73
4 Answers
8
You will need to get the View
inside of the GridView
and then access the RowCount
Property

msarchet
- 15,104
- 2
- 43
- 66
-
I came here looking for a Delphi answer. If your like me you should use `yourGridNameView.ViewData.RowCount` – dialex Sep 23 '14 at 16:22
2
In Dev Express There is a Grid Control and Inside this grid control view is there, so you can use gridview.rowcount property to get the number of rows in a gridview.

Megha Walia
- 31
- 3
2
Dim rowCount As Integer = 0 '''declare rowCount as integer to hold the count value
GridView.RowCount = rowCount '''//Now assign the the count to rowCount

Nilesh Sarkale
- 59
- 1
- 10
0
You can count rows using a CSS class which has applied on grid view rows for e.g.
var number = $('tr.dxgvDataRow').length;

Ivar
- 6,138
- 12
- 49
- 61

Priya-Systematix
- 119
- 6