is it possible to bind a nested property to a GridView column?

Discussion in 'ASP .Net' started by Neil Chambers, Sep 4, 2008.

  1. I have an object which references another object (courtesy of LINQ) and I
    would like to use a property from the referenced object in a grid view.
    However, my feeble attempt at doing this does not work

    //field is retrived as expected
    <asp:BoundField DataField="name" HeaderText="name" />

    //GridView complains that property cannot be found
    <asp:BoundField DataField="address.street" HeaderText="street" />

    Am I barking up the wrong tree?

    Cheers,
    n
     
    Neil Chambers, Sep 4, 2008
    #1
    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. Jim Hammond
    Replies:
    1
    Views:
    3,684
    bruce barker
    Nov 26, 2003
  2. vishnu
    Replies:
    1
    Views:
    1,251
    Patrick.O.Ige
    Mar 25, 2006
  3. Keithb
    Replies:
    2
    Views:
    1,202
  4. Keith G Hicks
    Replies:
    3
    Views:
    805
    Keith G Hicks
    Feb 18, 2008
  5. Hari
    Replies:
    0
    Views:
    282
Loading...

Share This Page