当我尝试使用
ObjectDataSource
将ASP.NET GridView
数据绑定到IEnumerable<ExpandoObject>
时,会出现以下异常信息。
有人知道如何将数据绑定到System.Web.HttpException (0x80004005): DataBinding: 'System.Dynamic.ExpandoObject' does not contain a property with the name 'StoreID'.
ExpandoObjects
吗?
ICustomTypeDescriptor
和/或ITypedList
的东西。 - Marc Gravell