By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,919 Members | 1,587 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,919 IT Pros & Developers. It's quick & easy.

How to include nested properties in DataField of GridView.

P: n/a

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

May 15 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.