Heirarchal Binding Source

Greetings:

I have parent-child object relations, such as a Company having a list of Employees, or a one-to-one relationship such as Company having one Agency, Broker, such as:

Company.cs:

public Company Agency
{
get { return agency; }
set { agency = value; }
}

public Company Broker
{
get { return broker; }
set { broker = value; }
}
private IList EmployeeList
{
get
{
return employeeList;
}
set { employeeList = value; }
}

How can I create a BindingSource (or BindingNavigator ) that allows me to bind my form to parent-child objects.

I currently have to put in a separate BindingSource for the parent and each child appearing on the Company details form -- not the most object oriented approach.

Thank you.


Answer this question

Heirarchal Binding Source

  • Heirarchal Binding Source