J
Jon Paugh
So say I have a collection of instances of object A's.
Now each object A has a reference to an object B.
If object A has a property called "Description" I can get
at it in a datagrid bound to my collection of object A's
using:
<%# DataBinder.Eval(Container.DataItem, "Description")%>
but what about if object B has a property called
Description? Is there a way to get at this property on
related object B?
I know I could put some code in the ItemDataBound event
handler for my datagird to do this. I am wondering if
there is a way to do it using databinder, or even better,
using the properties on a BoundColumn.
Thanks,
Jon Paugh
Now each object A has a reference to an object B.
If object A has a property called "Description" I can get
at it in a datagrid bound to my collection of object A's
using:
<%# DataBinder.Eval(Container.DataItem, "Description")%>
but what about if object B has a property called
Description? Is there a way to get at this property on
related object B?
I know I could put some code in the ItemDataBound event
handler for my datagird to do this. I am wondering if
there is a way to do it using databinder, or even better,
using the properties on a BoundColumn.
Thanks,
Jon Paugh