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 / suyash deep

best way to retrieve data is-
//dtTable is Data table
//dtrow id Data Row object


string str;
foreach(DataRow dtrow in dtTable.rows)
{

str= dtrow ["emp_Name"].Tostring();
//emp_Name is the column name

// now use str variable as you want to manipulate.
}

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is asp net application object?

958


What is a user developed application?

878


How can I have a particular web page in an asp.net application which displays its own error page?

1044


What is Web API?

1092


What is difference cookie and session?

926


What is client side state management?

898


Does google crawl redirects?

908


What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?

908


Is global asax mandatory?

930


What is difference between URL and URI?

1045


How you can stop the validation of ASP.NET controls from client side?

980


What are the new features added from ASP to ASP.NET?

1028


What is the purpose of asp.net?

950


Which method do you use to kill explicitly a users session?

1001


What is the difference between client-side and server-side validations in webpages?

945