0
votes

I have a complex object. For example a SCHOOL object that contains a collection of PERSON object. How can I use the ObjectDataSource control with a FormView and flatten the complex object? An example display would be to display the school name and comma separate the students on the page. Is this possible?

I.E.
public string Id
{
get { return m_id; }
set { m_id = value; }
}

public string SchoolName
{
get { return m_schoolName; }
set { m_schoolName = value; }
}

public List(Person> Students
{
get { return m_students; }
set { m_cast = students; }
}

1

1 Answers

0
votes

Found the solution here:

Displaying an IGrouping<> with nested ListViews.

I nested a DataList control inside my FormView control to get it working.