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 true about application service provider?
Mention the namespace that is used to include .net data provider for sql server in .net code?
What is application state?
Do you support digital rights management to protect my videos?
What is difference between viewstate and session state in javascript?
Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc
Why is the standalone environment only useful during the development process?
If you want to write your own dot net language, what steps you will you take care?
How do you secure your configuration files to be accessed remotely by unauthorized users?
is gateway for sms continue connected for sending sms.how?
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
Explain the flow of processing of the request? : asp.net mvc
What is difference in .net 1.1 and .net 2.0?
Why is global asax is used?
What is difference between session and viewstate?