Thank you, Craig! That was it exactly. 

Craig Dunn wrote
> 
> try changing
> 
> var counties = connection.Table<CountyData>();
> 
> to the following two lines:
> 
> var countiesTable = connection.Table<CountyData>();
> 
> var counties = (from i in countiesTable select i).ToList (); // using
> System.Linq
> 
> 
> basically the object returned from connection.Table<> isn't really a list
> you can bind to: you need to perform a query on it that gives you a
> generic
> list that your TableSource expects.
> 
> HTH
> 
> 


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Problem-with-making-code-based-on-database-access-gallery-project-work-tp4641935p4644712.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to