Return to Snippet

Revision: 12390
at March 12, 2009 17:14 by blackf0rk


Initial Code
For Each DataRow As DataRow In ds.Tables(0).Rows
   Dim outData as String
   outData = DataRow("fieldName").toString
Next

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

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

Initial Title
Loop Through a DataSet

Initial Tags
data

Initial Language
VB.NET