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
What is connection pooling and how to enable and disable connection pooling?
How do you use viewstate?
Where is asp.net view state stored?
What is the caspol.exe tool used for?
Which is faster viewdata or viewbag?
What is bound controls
what are the security certificates used in webservices?
What is asp.net mvc5? : Asp.Net MVC
What is the purpose of session management?
What are sessions and cookies?
What are main return types supported in Web API?
What kind of data we can store in viewstate?
Explain what is clr?
What is the difference between client-side and server-side validations in ASP.NET?
What’s the difference between response .redirect and server.transfer?