How to iterate through records in a dataset??

  • Thread starter Thread starter BB
  • Start date Start date
B

BB

I want to be able to load a table into a dataset in my VB.NET app, check
each field/column of each row/record for missing or incorrect data, then
update a field/column in the record to indicate an error was found.
Eventually, I'll want to save that table data back to the database.

Does anyone have any sample code I can look at for iterating/looping through
records in a dataset?

Thank you!
BB
 
BB said:
I want to be able to load a table into a dataset in my VB.NET app,
check each field/column of each row/record for missing or incorrect
data, then update a field/column in the record to indicate an error
was found. Eventually, I'll want to save that table data back to the
database.

Does anyone have any sample code I can look at for iterating/looping
through records in a dataset?

dim row as datarow

for each row in mydataset.tables("table").rows

next
 
Back
Top