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 difference between datagridview and datagrid control in winforms?

728


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

699


What is an example of ordinal data?

758


Which is the best method to get two values from the database?

753


How to connect and retrieve data from database using dataset

771


Which ado.net object is very fast in getting data from the database?

884


What is ado full form?

773


What are the major difference between classic ADO and ADO.NET?

761


What is ado connection?

718


What is ado recordset?

705


If a table contains 20000 records . In a page at each time 100 records to be displayed what are the steps you will take to improve performance? Will you use dataset or datareader?

853


What is the difference between Command and CommandBuilder object?

810


What are the major challenges in accessing data from a database?

777


What is different between sqlcommand object and command behavior object?

768


How many major types of connection objects in ADO.NET?

828