How to retrieve data row by row from a DataTable?
Thanks In advance
PriyaPP

Answer Posted / digvijay

In C#

foreach(DataRow dr in dt.rows) //dt is Data table
{

string ABC= dr["Coloumn_Name"].Tostring;

}

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of sessions in asp.net? Name them?

689


What is the difference between session and application?

518


Explain the difference between asp.net mvc and asp.net webforms

591


What is application Object?

601


What is the server of asp.net?

518






What are the major built-in objects in ASP.NET?

584


What is the meaning of TestApi?

640


What is the difference between client-side and server-side validations in ASP.NET?

671


Difference between using directive vs using statement?

516


In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?

514


What is the use of execute non query in asp.net?

494


a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.

1450


How information about the user's locale can be accessed?

589


Explain server-side scripting and client-side scripting.

524


Why mvc is better than asp.net? : Asp.Net MVC

477