How show nested IEnumerable(Of Type) columns in grid?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ronald S. Cook

    #1

    How show nested IEnumerable(Of Type) columns in grid?

    I have an object that is IEnumerable(Of Employee).

    An Employee has a foreign key LocationId because an employee is based at one
    and only one office location.

    Location has attributes LocationId, LocationName, etc.

    When I fill an editable grid (Infragistics UltraGrid if that matters), I
    want to display the following columns:

    EmployeeLastNam e
    EmployeeFirstNa me
    LocationName

    I can do this easily if I return just an IEnumerable and have explicilty
    listed the columns. But, I want to return IEnumerable(Of Employee) so I can
    edit and update accordingly.

    Any idea how to do this?

    Thanks.


Working...