Given the following List(of Position) objects for an ObjectDataSource
Position
Description
EmployeeA
FirstName
LastName
EmployeeB
FirstName
LastName
Is it possible to bind a GridView column to EmployeeA.LastName?
Jay Pondy - 07 Oct 2007 21:44 GMT
Yes. Use a Template Column:
<asp:TemplateField HeaderText="EmployeeA">
<ItemTemplate>
<%#eval("EmployeeA.LastName") %>
</ItemTemplate>
/asp:TemplateField>
>Given the following List(of Position) objects for an ObjectDataSource
>
[quoted text clipped - 8 lines]
>
>Is it possible to bind a GridView column to EmployeeA.LastName?