I have an application that was working fine and then upgraded to the latest version without reading the release notes. I know....dumb...but wanted to keep current.
The problem is with databinding.
I have the following business object that has child colletions for ProductCategories and Locations:
public
class
Customer
{
private
string
name;
private
List<ProductCategory> categories;
private
List<Location> locations;
... with their associated
public
properties;
}
the ProductCategories
class
also has a child collection of products like so..
public
class
ProductCategory
{
private
string
categoryName;
private
List<Product> products;
....
}
public
class
Product
{
private
string
productName;
......
}
I would like that tree to display the following:
Customer Name
Product Categories
Product Category 1
Product Name 1
Product Name 2
Product Category 2
Product Name 1
Product Name 2
Locations
Location Name 1
Location Name 2
When I retrieve the information about the customer the child collections get loaded up in a List<Customer> custList
How do I set that up?
Do I use the RelationBindings colletion? If so, how?
Thanks