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

What is connection pooling and how to enable and disable connection pooling?

958


How do you use viewstate?

938


Where is asp.net view state stored?

953


What is the caspol.exe tool used for?

969


Which is faster viewdata or viewbag?

945


What is bound controls

1002


what are the security certificates used in webservices?

1944


What is asp.net mvc5? : Asp.Net MVC

980


What is the purpose of session management?

933


What are sessions and cookies?

928


What are main return types supported in Web API?

1325


What kind of data we can store in viewstate?

993


Explain what is clr?

978


What is the difference between client-side and server-side validations in ASP.NET?

1115


What’s the difference between response .redirect and server.transfer?

947