开发者

Dev Express GridView rows count

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜