Posted By

blackf0rk on 03/12/09


Tagged

data loop set dataset through


Versions (?)

Loop Through a DataSet


 / Published in: VB.NET
 

URL: http://codefinds.blogspot.com/2008/12/loop-through-dataset.html

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.