How to include nested properties in DataField of GridView.

Discussion in 'ASP .Net' started by Peter Rilling, May 15, 2006.

  1. Hi.

    I am using a GridView to display records from an ObjectDataSource. My
    middle-tier layer have nested properties, meaning that I have things like
    Employee.Name.FullName, where Employee is what I am binding the grid to
    while FullName is what I want displayed.

    For some reason the GridView does not allow me to do something like
    DataField="Name.FullName". This worked when using Eval() method, but not
    with GridView. Can I emit nested properties using DataField or do I have to
    use a TemplateField and revert back to using Eval()?
    Peter Rilling, May 15, 2006
    #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. Adil Bohoudi
    Replies:
    1
    Views:
    452
    Eric Wise
    Aug 6, 2003
  2. mz
    Replies:
    0
    Views:
    641
  3. jobs
    Replies:
    1
    Views:
    1,463
  4. Andreas Bogenberger
    Replies:
    3
    Views:
    880
    Andreas Bogenberger
    Feb 22, 2008
  5. suzy

    nested data.. datafield property

    suzy, Jul 18, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    99
Loading...

Share This Page