number of rows in datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
Mike,

A datagrid has forever as much rows as it has in its datasource.

I hope this helps,

Cor
 
No, what I want if I already have a datagrid displaying data and want toknow
how many rows in my generated datagrid.
 
Mike,

As I said the same as in your datasource (you cannot have a datagrid without
a datasource) and with every rowchange in the datagrid is that one updated.

Cor
 
Hi,

The datagrid does not have a number or row property. You can get
the count this way.

Dim numRec As Integer = Me.BindingContext(DataGrid1.DataSource).Count


Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top