How to find the count of records in a dataset?

Answer Posted / vaidyanathan r.

int count = 0
foreach(DataTable CurrTable in DataSet1.Tables)
Count += currTable.Rows.Count;

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is row state?

713


What is data reader in ado.net?

713


Data reader read and forward only, how is it possible to get 2 tables of data at a time?

685


What are the different methods available under the sqlcommand class to access the data?

794


What are all components of ADO.Net data provider?

804


Explain the difference in record set and dataset?

701


What is ado net stands for?

709


What is ado code?

712


What is a dataview?

716


What is aggregate root?

730


What is the default provider in ado.net?

700


Define isolation?

750


What are the advantage of ado.net?

739


How to find the given query is optimised one or not?

738


What connected data?

694