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 ? > >Pete, it was available in VS2008 also. You probably don't have the proper using: using System.Linq;
That was it - haven't got my head around extensions yet - thanks Bonnie