I am trying to get a list of a list of strings in the code below and I am getting an on select that reads:
Cannot implicitly convert type 'System.Data.EnumerableRowCollection>' to 'System.Collections.Generic.List>'
List<List<string>> rows = (from myRow in data.AsEnumerable()
select new List<string> {myRow["FirstName"].ToString(),
myRow["LastName"].ToString(),
myRow["Department"].ToString(),
myRow["Birthdate"].ToString(),
myRow["Description"].ToString()
});
How can I get a list of a list of strings?