Dev Express GridView行数

时间:2011-03-31 14:12:42

标签: c# winforms devexpress xtragrid

System.Windows.Forms.DataGridView DataGridView.Rows.Count。{{1}}。但是,如何才能获得Dev Express GridView的行数?

4 个答案:

答案 0 :(得分:7)

您需要获取View内的GridView,然后访问RowCount媒体资源

答案 1 :(得分:1)

在Dev Express中有一个网格控件,里面有这个网格控件视图,所以你可以使用 gridview.rowcount属性,用于获取gridview中的行数。

答案 2 :(得分:1)

Dim rowCount As Integer = 0 '''declare rowCount as integer to hold the count value

GridView.RowCount = rowCount '''//Now assign the the count to rowCount

答案 3 :(得分:-1)

您可以使用已应用于网格视图行的CSS类来计算行数。

def