title: Looping through a DataTable
body: <p>Well. I have a DataTable with multiple columns and multiple rows.</p>
  
  <p>I want to loop through the DataTable dynamically basically the output should look as follows excluding the braces :</p>
  
  <pre><code>Name (DataColumn)
  Tom  (DataRow)
  Peter (DataRow)
  
  Surname (DataColumn)
  Smith (DataRow)
  Brown (DataRow)
  
  foreach (DataColumn col in rightsTable.Columns)
  {
       foreach (DataRow row in rightsTable.Rows)
       {
            //output              
       }
  } 
  </code></pre>
  
  <p>I typed that out and noticed this would not work. Can someone please advice on a better way of doing this?</p>