Set DataNavigateUrlField to contained custom object property

M

mhageman27

I have a GridView bound to a collection of custom objects (e.g.,
Department). Each Department object contains a custom object (e.g.,
Manager). I want to use a property on the Manager object (e.g., Id)
for the DataNavigateUrlFields property on my HyperLinkField, but
setting DataNavigateUrlFields equal to Manager.Id (i.e.,
DataNavigateUrlFields="Manager.Id") does not work. How can I go about
doing this? I have successfully exposed the Manager.Id property as a
property on the Department object itself, but would prefer a more
elegant solution, if possible.
 

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

Forum statistics

Threads
474,266
Messages
2,571,079
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top