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

Explain how asp.net different from asp?

811


Explain the difference between asp & asp.net.

739


What are the Types of state management techniques

757


What can you do with asp.net?

692


What is mvc in asp.net interview question? : Asp.Net MVC

711


Describe the difference between inline and code behind - which is best in?

760


Which is better union or union all?

784


What is autopostback in dropdownlist in asp net?

734


What are the event handlers that can be included in the Global.asax file?

816


Which validator control you use if you need to make sure the values in two different controls matched?

845


Why is mvc better than asp.net?

756


Can I stream live content/events?

787


Explain about Application and Session Events ?

820


What is asp short for?

745


I have an excel file with data, i am importing this excel file data into Sqlserver 2005 database. while importing i am getting wrong data(ie, special characters) in one column(description column), upto some limit the data in that column is coming fine,after that data is coming like below. The "Walter" leather storage bench is one of our most popular styles. The top with the tufting and double stitching finish a very impressive piece. The size is perfect in front of beds and the storage adds another functional bonus. Open it up and sneak al���Ƴ�Â��ƴ�Ã��ƶ�Å�� al���Ƴ�Â��ƴ�Ã��ƶ�Å�� Is there anywhy to resolve this? (I am using recordset in coding for developing import process.) please help me soon.

1674