Vano Maisuradze
Vano Maisuradze

Reputation: 5899

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?

Upvotes: 4

Views: 16108

Answers (4)

Nilesh Sarkale
Nilesh Sarkale

Reputation: 59

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

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

Upvotes: 2

Priya-Systematix
Priya-Systematix

Reputation: 119

You can count rows using a CSS class which has applied on grid view rows for e.g.

var number = $('tr.dxgvDataRow').length;

Upvotes: 0

Megha Walia
Megha Walia

Reputation: 31

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.

Upvotes: 2

msarchet
msarchet

Reputation: 15232

You will need to get the View inside of the GridView and then access the RowCount Property

Upvotes: 8

Related Questions