public List <String> AllKeys() { dt = employeeDal.AllKeys(); 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); }