title: How to populate specific DataTable column with values
body: <p>Hello I have a dataTable updatedValues, and I was wondering if there was a way to set a value of the column with a value.</p>
  
  <pre><code>int rowindex = 0;
  foreach(string val in something)
      {
      try
          {
          updatedValues.Columns["Books"][rowindex] = val;
  
          Console.WriteLine("Went Here");
          }
      catch
         {
         }
  
      rowindex++;
      }
  </code></pre>
  
  <p>The try obviously won't compile because it has incorrect syntax, but I was wondering if there was anything similar to what is in the try.</p>