Posted By

blackf0rk on 03/12/09


data loop set dataset through

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Loop Through a DataSet

 / Published in: VB.NET


Assuming your DataSet (named, ds) is already populated with Data and contains only one table.

  1. For Each DataRow As DataRow In ds.Tables(0).Rows
  2. Dim outData as String
  3. outData = DataRow("fieldName").toString
  4. Next

Report this snippet  

You need to login to post a comment.