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 is Web API Routing?

685


What is difference between ispostback and autopostback in asp net?

608


What is the asp.net control toolkit?

653


What is difference between abstract class and an interface?

582


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

600






COM+ Used ________________ Isolation Level

1607


How does u call and execute a sp in .net?

629


What is server components?

639


How will you load dynamic assembly? How will create assesblies at run time?

553


What is a master page and what does it do?

615


How can you handle unmanaged code exceptions in asp.net?

643


Describe paging in asp.net?

762


How you can manage the state of application at the server side in ASP.NET?

668


What is the significance of attaching a profile while creating a user?

655


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

672