public List <String> AllTablesInDatabaseSolTwo() { dt = employeeDal.AllTablesInDatabaseSolTwo(); List <String> tableList = new List <string>(); foreach (DataRow r in dt.Rows) { string value = ""; foreach (DataColumn c in dt.Columns) { value += r[c].ToString() + " | "; } tableList.Add(value); } return(tableList); }