Monday, 27 August 2012

Difference Between DataSet.Tables.Count() And DataTable.Rows.Count()

We are aware about the DataSet and DataTable . Some time the question arise that what is difference between  DataSet.Tables.Count()  And DataTable.Rows.Count().

The solution is given below .

DataSet.Tables.Count()
-It Gives the number of tables available within a dataset

DataTable.Rows.Count() -
Gives the number of rows available within a datatable.it is basically used for counting total number of rows in a table.

Hope this will help you .
Thanks
ROHIT KUMAR SRIVASTAVA

No comments:

Post a Comment