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

Answer Posted / guest

foreach(Datarow dr in table.rows)
{
string str = dr[0].ToString();
string str1 = dr["columnName"].ToString();

}

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between view state and session state?

664


Differentiate strong typing and weak typing

714


In early binding will the method invoked on com component will verify it?s existance in the system or not ?

2368


How many types of validators are there in asp net?

682


Which is faster viewbag or viewdata?

739


What is a viewstate?

744


what are the security certificates used in webservices?

1716


How about the security in Activex DLL and Activex EXE ?

2011


List the advantages and disadvantages of user control an custom control?

725


What are the 3 levels at which content pages can be attached to Master Page?

782


What is the file through which you can customize your asp.net application?

753


How can we create Tree control in asp.net?

777


Why does my asp.net file have multiple tag with runat=server?

761


What is advantage of asp.net?

729


What is cross page posting? How is it done?

715