In System.Windows.Forms.DataGridView
it is DataGridView.开发者_开发问答Rows.Count
. But how can I get Dev Express GridView's rows count?
You will need to get the View
inside of the GridView
and then access the RowCount
Property
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.
Dim rowCount As Integer = 0 '''declare rowCount as integer to hold the count value
GridView.RowCount = rowCount '''//Now assign the the count to rowCount
You can count rows using a CSS class which has applied on grid view rows for e.g.
var number = $('tr.dxgvDataRow').length;
精彩评论