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 asp net application object?
What is a user developed application?
How can I have a particular web page in an asp.net application which displays its own error page?
What is Web API?
What is difference cookie and session?
What is client side state management?
Does google crawl redirects?
What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?
Is global asax mandatory?
What is difference between URL and URI?
How you can stop the validation of ASP.NET controls from client side?
What are the new features added from ASP to ASP.NET?
What is the purpose of asp.net?
Which method do you use to kill explicitly a users session?
What is the difference between client-side and server-side validations in webpages?