How to bind a GridView to a list of multiple types?
问题 I get this error: System.Reflection.TargetException: Object does not match target type. when trying to bind a List<IEvent> where an IEvent can be an appointment, a birthday, or a few other calendar related event types. 回答1: ChanChan, GridView does not support binding to a collection of interfaces, Try redisigning your application to ensure binding only to a collection of concreate classes. The only workaround for this is to use base class (in your case Event) and bind to a collection of