How do you get the total number of records in a datagrid?

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

I can't seem to find a property in the datagrid class
that gives me the total number of records stored in it.
Is there another way to do it?
 
Interrogate the underlying datasource. For instance, if it's bound to a
datatable, DataTable.Rows.Count. If it's a DataView then DataView.Count etc
 

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