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 the difference between page-level caching and fragment caching?
What is server components?
How can we prevent browser from caching an aspx page?
How to use push notification?
Explain the concept of View Model in MVC?
Is asp net front end or backend?
Can more than one person use the same login?
What is the difference between localization and globalization?
Can we set master page as a start page?
What is cas?
Why does my asp.net file have multiple tag with runat=server?
What role “#&&” plays in a querysting?
What are the server controls in asp.net?
Why viewstate is used in asp.net?
how to retrieve property settings from xml .config file.