DataGrid Binding Problem : "Object does not match target type."

Discussion in 'ASP .Net Web Controls' started by Karahan Celikel, Aug 19, 2003.

  1. I have a datagrid in which I want to visualize objects of various type
    (they inherit from the same base class). I want to display common properties
    of the objects over the grid.

    At runtime I create an ArrayList that contains all the objects . When I make
    the binding I obtain the following error:

    "Object does not match target type."

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

    Any help would be appreciated.

    Thanks.
     
    Karahan Celikel, Aug 19, 2003
    #1
    1. Advertising

  2. Hi Karahan,

    I have replied to your post in
    <microsoft.public.dotnet.framework.aspnet.datagridcontrol> titled:
    <Datagrid Binding Error "Object does not match target type">

    http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=T00g6awZ
    DHA.2296%40cpmsftngxa06.phx.gbl&rnum=1&prev=/groups%3Fq%3D%2BDatagrid%2BBind
    ing%2BError%2B%2522Object%2Bdoes%2Bnot%2Bmatch%2Btarget%2Btype%2522%26hl%3De
    n%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3DT00g6awZDHA.2296%2540cpmsftngxa
    06.phx.gbl%26rnum%3D1

    Hope this helps.

    Best regards,
    Lewis

    This posting is provided "AS IS" with no warranties, and confers no rights.

    -------------------
    | From: "Karahan Celikel" <>
    | Subject: DataGrid Binding Problem : "Object does not match target type."
    | Date: Tue, 19 Aug 2003 10:00:48 -0500
    | Lines: 23
    | X-Priority: 3
    | X-MSMail-Priority: Normal
    | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    | Message-ID: <>
    | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
    | NNTP-Posting-Host: 126-23-206.biztyp2.ksle.everestkc.net 64.126.23.206
    | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
    | Xref: cpmsftngxa06.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webcontrols:14031
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
    |
    | I have a datagrid in which I want to visualize objects of various type
    | (they inherit from the same base class). I want to display common
    properties
    | of the objects over the grid.
    |
    | At runtime I create an ArrayList that contains all the objects . When I
    make
    | the binding I obtain the following error:
    |
    | "Object does not match target type."
    |
    | Exception Details: System.Reflection.TargetException: Object does not
    match
    | target type.
    |
    | Any help would be appreciated.
    |
    | Thanks.
    |
    |
    |
    |
    |
    |
    |
    |
    |
     
    Lewis Wang [MSFT], Aug 20, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    12,794
    Sean Foy
    Aug 6, 2006
  2. Replies:
    4
    Views:
    524
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
    Feb 21, 2007
  3. Lasse Vågsæther Karlsen
    Replies:
    1
    Views:
    1,033
    Lasse Vågsæther Karlsen
    Nov 27, 2007
  4. Karahan Celikel

    Datagrid Binding Error: "Object does not match target type."

    Karahan Celikel, Aug 19, 2003, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    239
    Lewis Wang [MSFT]
    Aug 20, 2003
  5. Karahan Celikel

    Datagrid Binding Error "Object does not match target type"

    Karahan Celikel, Aug 19, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    272
    Lewis Wang [MSFT]
    Aug 20, 2003
Loading...

Share This Page