When I try to databind an ASP.NET GridView
to an IEnumerable<ExpandoObject>
using an ObjectDataSource
, I get the following exception.
System.Web.HttpException (0x80004005): DataBinding: 'System.Dynamic.ExpandoObject' does not contain a property with the name 'StoreID'.
Anyone know how I could databind to ExpandoObjects
?
ICustomTypeDescriptor
and/orITypedList
– Gathering