Professional Web Applications Themes

Datagrid Binding Error: "Object does not match target type." - ASP.NET Building Controls

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....

  1. #1

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

    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 Guest

  2. #2

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

    Hi Karahan,

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

    [url]http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=T00g6awZ[/url]
    DHA.2296%40cpmsftngxa06.phx.gbl&rnum=1&prev=/groups%3Fq%3D%2BDatagrid%2BBind
    ing%2BError%2B%2522Object%2Bdoes%2Bnot%2Bmatch%2Bt arget%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" <NOkarahan_celikelSPAMhotmail.com>
    | Subject: Datagrid Binding Error: "Object does not match target type."
    | Date: Tue, 19 Aug 2003 09:49:53 -0500
    | Lines: 24
    | 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: <eWuDmEmZDHA.1940TK2MSFTNGP10.phx.gbl>
    | Newsgroups: microsoft.public.dotnet.framework.aspnet.buildingc ontrols
    | NNTP-Posting-Host: 126-23-206.biztyp2.ksle.everestkc.net 64.126.23.206
    | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
    | Xref: cpmsftngxa06.phx.gbl
    microsoft.public.dotnet.framework.aspnet.buildingc ontrols:7081
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.buildingc ontrols
    |
    | 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] Guest

Similar Threads

  1. CFINPUT type="radio" w/ "value" requires "label"
    By Iceborer in forum Macromedia ColdFusion
    Replies: 2
    Last Post: February 21st, 06:16 PM
  2. Replies: 2
    Last Post: February 16th, 06:40 PM
  3. #25366 [NEW]: form buttons of type "image" dont send "submit" $_POST variable in IE
    By jordanolsommer at imap dot cc in forum PHP Development
    Replies: 0
    Last Post: September 2nd, 07:54 PM
  4. Datagrid Binding Error "Object does not match target type"
    By Karahan Celikel in forum ASP.NET Data Grid Control
    Replies: 1
    Last Post: August 20th, 10:35 AM
  5. Replies: 2
    Last Post: July 10th, 11:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139