Support for Generic Lists in the CustomDataSource

Topics: Web Client Software Factory
Nov 8, 2006 at 2:26 AM
With the current CustomDataSource, you receive the error "Unable to cast object of type 'System.Collections.Generic.List`1MyObject' to type 'System.Collections.Generic.IEnumerable`1System.Object'" when you attempt to assign a List<MyObject> to the DataSource property of the CustomDataSource. I'm assuming it's because the CustomDataSource doesn't support Generic Lists yet. It would be cool if it did at some point like the regular .NET 2.0 ObjectDataSource does...

Nov 8, 2006 at 5:03 PM

Actually the CustomDataSource supports generic lists, but there was a bug in this version that didn't let you add a generic list. It will be fixed for the next release.

Thanks for the feedback!