System.Reflection.TargetException: Object does not match target type.

Last post 07-05-2009 8:42 AM by ik78. 0 replies.

Sort Posts:

  • System.Reflection.TargetException: Object does not match target type.

    07-05-2009, 8:42 AM
    • Member
      4 point Member
    • ik78
    • Member since 07-01-2008, 4:17 AM
    • Posts 13

    Hi

    I am retrieving the following error when I bind a custom collection with a gridview
    "System.Reflection.TargetException: Object does not match target type."

    Some details.

    The base class is

    public class SortableBindingList<T> :BindingList<T>, ITypedList
    {
           .....
    }  

    The collection class is

    public class MyCollection : SortableBindingList<MyInterface>
    {
           .....
    }

     The collection contains two types of objects that inherit from the same interface

    Thanks

    Itzik

Page 1 of 1 (1 items)