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 route in web api?

976


How can you access the properties and controls of master pages from content pages?

961


Explain the disadvantages of viewstate?

1031


What is %20 in a url?

858


What are demand-paging and pre-paging?

956


Define resource files.

929


What can you do with asp.net?

900


We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?

1858


What are the advantages of asp.net?

946


What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.

979


Explain the difference between server control and html control.

886


What is css in asp.net?

1018


What are validator? Name the validation controls in asp.net?

973


Securitywise What are the Enhancements in 2.0?

1895


Difference between using directive vs using statement?

945