title: c# getting item in row from datatable
body: <pre><code>    foreach (DataRow row in dt.Rows)
      {
          string[] temprow={"","","",row[3].ToString()};
          dtworklist.Rows.Add(temprow);
      }
  </code></pre>
  
  <p>dt is my datatable. i need to get the 3rd element in the row and put it into an array. the above is what i tried so far with no luck. how do i do it?</p>