11-Jun-03 (Created: 11-Jun-03) | More in 'CS-dotnet'

How can I walk through a dataset?

// Get the first table in the data set
DataTable dt = ds.Tables[0];

// Getting the number of rows in that table
int numOfRows = dt.Rows.Count;
this.InfoMsg("Retrieved {0} number of rows", numOfRows);

// iterating through the row
foreach(DataRow dataRow in dt.Rows)
   // do something with DataRow