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 retrieve data row by row from a DataTable?
Thanks In advance
PriyaPP

Answer Posted / guest

foreach(Datarow dr in table.rows)
{
string str = dr[0].ToString();
string str1 = dr["columnName"].ToString();

}

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need Sessions?

1100


Describe the master page.

996


Which is faster viewdata or viewbag?

1054


How to find last error which occurred?

1090


Why do we use datasource in asp.net?

1015


What's the difference between viewstate and sessionstate?

1133


To wrap up a call to a Web service the standard used is..?

1034


Let's say I have an existing application written using vb6 and this application utilizes windows 2000 com+ transaction services. How would you approach migrating this application to.net?

959


Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?

1054


Can we use a static function with a non-static variable?

1021


What is viewstate? What does the “enableviewstate” property do?

993


What is use of Master Page in ASP.NET web pages?

1101


What I need to create and run an asp.net application?

1017


What is session id in web application?

1151


Explain the function of new view engine in asp.net? : asp.net mvc

1076