Skip to content

Instantly share code, notes, and snippets.

@MayogaX
Created September 21, 2015 20:47
Show Gist options
  • Save MayogaX/90147a2fc0e5b79dc2ab to your computer and use it in GitHub Desktop.
Save MayogaX/90147a2fc0e5b79dc2ab to your computer and use it in GitHub Desktop.
private void PrintRows(DataSet dataSet)
{
// For each table in the DataSet, print the row values.
foreach(DataTable table in dataSet.Tables)
{
foreach(DataRow row in table.Rows)
{
foreach (DataColumn column in table.Columns)
{
Console.WriteLine(row[column]);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment