I need to convert a few rows of data I am pulling from a DataTable from a List into a string separated by commas. Here is what I have now. It does not work at all (it shows System.Data.DataRow,System.Data.DataRow
in the messagebox), however a breakpoint at list shows the correct number of rows, with the correct data.
cmd3.Fill(badnum);
List<DataRow> list = badnum.AsEnumerable().ToList();
string badnumbers = string.Join(",", list);
MessageBox.Show(badnumbers);