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 are the three parts of an http response?
How to deploy/publish webservices?How many ways?Plz explain me
What is server side session management?
What symbol specifies the beginning of a query string?
Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?
What is the difference between custom web user control and a custom web server control?
Define globalization and localization.
What is asp.net ajax?
Can we set master page as a start page?
Where web.config file is used?
What is the difference between union and join?
Which adapter should you use, if you want to get the data from an access database?
how to retrieve property settings from xml .config file.
How can we apply themes to an asp.net application?
Mention few asp.net validators.