Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to find the count of records in a dataset?

Answers were Sorted based on User's Feedback



How to find the count of records in a dataset?..

Answer / jeyaram thangaponnan

DataSet.Tables[0].Rows.Count will give the number of rows
in that table

Is This Answer Correct ?    30 Yes 0 No

How to find the count of records in a dataset?..

Answer / vaidyanathan r.

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

Is This Answer Correct ?    9 Yes 1 No

How to find the count of records in a dataset?..

Answer / eduardo belmonte

Regarding answer # 3 : It is correct.

Regarding answer # 2 : It is not correct, remember a
dataset contains datatables, and those datatables each can
have its own amount of datarows.

So to know "all" datarows in a dataset you have to add how
many rows "each" of its component datatables may have.

Is This Answer Correct ?    6 Yes 0 No

How to find the count of records in a dataset?..

Answer / jagadish

DS.Tables["tabname"].Rows.Count;

we can get count of the records.

Is This Answer Correct ?    6 Yes 2 No

How to find the count of records in a dataset?..

Answer / pushpendra singh

DataSet.Tables[0].rows.count returns total rows in table.

Is This Answer Correct ?    4 Yes 1 No

How to find the count of records in a dataset?..

Answer / guest

foreach(DataTable thisTable in myDataSet.Tables){
// For each row, print the values of each column.
foreach(DataRow myRow in thisTable.Rows)}

Is This Answer Correct ?    3 Yes 8 No

Post New Answer

More ADO.NET Interview Questions

How is it possible to get 2 tables of data at a time by using data reader?

0 Answers  


What is connected architecture in ado.net?

0 Answers  


What is Data view?

0 Answers  


What does executequery return?

0 Answers  


What is the difference between typed and untyped dataset?

0 Answers  


What is ado.net explain with diagram?

0 Answers  


What are the namespaces used in ado.net for data access?

0 Answers  


what are types of Dataset ?

6 Answers   HCL,


Explain what is datagrid with an example?

0 Answers   C DAC, CDAC,


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

0 Answers  


What are the different row versions available in table?

0 Answers  


What is dao and ado?

0 Answers  


Categories