Size of a dataset or OledbDataReader

  • Thread starter Thread starter clark
  • Start date Start date
C

clark

Is there any way, other than cycling thru, to get the
number of rows in a dataset and/or the number of rows in
an oledbdatareader?

thanks
 
To get the number of rows in a particular table of the dataset:

myDataSet.Tables("MyTable").Rows.Count

For the datareader, you would have to cycle through it.

I highly recommend you look up the documentation on these objects.
 
Back
Top