开发者

Dev Express GridView rows count

开发者 https://www.devze.com 2023-02-20 20:49 出处:网络
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 ac

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消