title: How to get the values of a column in data table in C#?
body: <p>I have a data table with structure somewhat like this,</p>
  
  <pre><code>Week_Number  Col_A  Col_B  Col_C  Col_D  Col_E
  ----------------------------------------------
      1         10     20     30     40     50
      2         20     30     40     50     60
      3         30     40     50     60     70
      4         40     50     60     70     80
      5         50     60     70     80     90
  </code></pre>
  
  <p>And this is my code in c# to return the values of a data table.</p>
  
  <pre><code>foreach (DataRow dr in dt.Rows)
  {
      foreach (DataColumn dc in dr.Table.Columns)
      {
          lst.Add(dr[dc].ToString());
      }
   }
  </code></pre>
  
  <p>But it returns the values row-wise (e.g., Row[0] - 1,10,20,30,40,50, Row[1],..) whereas I want to get values for column-wise (e.g., Col[0] - 1,2,3,4,5, Col[1],...)</p>
  
  <p>Any help will be appreciated.</p>
  
  <p>Thanks.</p>