title: Datatable column into a string with string.join
body: <p>I have a datatable that contains a single column. I want to join all the rows in this datatable in to a single string with string.join</p>
  
  <p>I used the following but it gives me the error best overloaded method for string.join(string, string[]) has some invalid arguments.</p>
  
  <pre><code> string s = string.Join(", ", ds.Tables[1].Rows.OfType&lt;DataRow&gt;().Select(r =&gt; r[0].ToString()));
  </code></pre>
  
  <p>Can someone help me with writing it correct?</p>
  
  <p>I was referring to the following to get that code:
  <a href="https://stackoverflow.com/questions/13032675/store-each-datatable-column-in-string-var">Store each DataTable Column in string var</a></p>