List<string> list = ds.Tables[0].AsEnumerable().Select(row => row.Field<string>("MyField")).ToList();~~Bonnie
Dictionary<string, string> MyDictionary = ds.Tables[0].AsEnumerable().ToDictionary(dr => dr["KeyName"].ToString(), dr => dr["KeyValue"].ToString());>>>Hi Rob, I don't see ToDictionary() in intellisense - is it a VS2010 thing ?
> >Hi Bonnie , now I have that sorted - how can I populate a "List<string>" using a similar method ? > >