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
What is route in web api?
How can you access the properties and controls of master pages from content pages?
Explain the disadvantages of viewstate?
What is %20 in a url?
What are demand-paging and pre-paging?
Define resource files.
What can you do with asp.net?
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?
What are the advantages of asp.net?
What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.
Explain the difference between server control and html control.
What is css in asp.net?
What are validator? Name the validation controls in asp.net?
Securitywise What are the Enhancements in 2.0?
Difference between using directive vs using statement?