How to include nested properties in DataField of GridView.

P

Peter Rilling

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()?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top