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
I used the following but it gives me the error best overloaded method for string.join(string, string[]) has some invalid arguments.
string s = string.Join(", ", ds.Tables[1].Rows.OfType<DataRow>().Select(r => r[0].ToString()));
Can someone help me with writing it correct?
I was referring to the following to get that code: Store each DataTable Column in string var