title: Transfer specific datatable contents to another array
body: <p>I'm trying to transfer my datatable contents to another array. I am only going to get specific  fields from the datatable, but I do not know how to save the specific columns content to another array.</p>
  
  <p>What I did:</p>
  
  <pre><code>        dr = SuperViewBLL.GetSomeStuff();
          string[] new_array; 
          if (dr.Rows.Count &gt; 0)
          {
  
              for (int i = 0; i &lt; dr.Rows.Count;i++ )
              {
                 new_array[i] = dr.Rows[i]['StuffLocationId'];
                 // I do know this is wrong
              }
          }
  </code></pre>
  
  <p>How can I get the column <code>StuffLocationId</code> to the array new_array?</p>