在System.Windows.Forms.DataGridView它是DataGridView.Rows.Count。但是我怎样才能得到 Dev Express GridView 的行数呢?
13997 次
4 回答
8
您将需要进入View内部,GridView然后访问该RowCount属性
于 2011-03-31T14:19:07.113 回答
2
在 Dev Express 中有一个 Grid Control,并且在这个 grid control 里面有一个 view,所以你可以使用 gridview.rowcount 属性来获取一个 gridview 中的行数。
于 2015-07-19T12:23:27.437 回答
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
于 2017-10-23T12:35:12.283 回答
0
您可以使用已应用于网格视图行的 CSS 类来计算行数,例如
var number = $('tr.dxgvDataRow').length;
于 2016-11-24T04:26:32.057 回答