loop threw dataset?

  • Thread starter Thread starter DaveF
  • Start date Start date
D

DaveF

I have a dataset that I need to loop threw the rows of the table. What is
the best way to do this?
 
DaveF said:
I have a dataset that I need to loop threw the rows of the table. What is
the best way to do this?

Well, when you've found the right table, use

foreach (DataRow row in dataTable.Rows)
{
....
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top