title: How to foreach through a list of datatables?
body: <p>I have a list of 2 DataTables. I want to iterate through each of them, one at a time. How do I do this? There are 0 examples of going through a list of DataTables.</p>
  
  <pre><code>List&lt;DataTable&gt; test = new List&lt;DataTable&gt;();
  
  foreach (DataRow dataRow in TEST.LIST)
  {
      string value = dataRow.Field&lt;string&gt;("Slave_IO_Running");   //Looks for "Slave_IO_Running" status.
  
      if (value == "Yes")
      {
          results.Add(siteName + ": WORKING"); //adds working to the visual table 
      }
      else
      {
          results.Add(siteName + ": REPLICATION ERROR"); //adds not working to the result list
      }
      break;
  }
  </code></pre>