Hi,
I have a data structure similar to the one below where one class contains a colleciton of another class as one of it's fields:
Product
{
String name
String desription
Address[] addresses
}
Address
{
String state
String suburb
}
Within a data grid which I am binding to the Product class, I want to display only the Product "name" field but have it grouped by the "state" field of the first item of the addresses collection (within my data I am ensuring that every Product has at least one Address)
So my data grid would look somthing like:
VIC
- Product Name 1
- Product name 2
NSW
- Product Name 3
- Product Name 4
Is this possible? To date I can only get grouping working on fields within the Business (or top level) class, not fields from the Address (or nested) class.
I have a data structure similar to the one below where one class contains a colleciton of another class as one of it's fields:
Product
{
String name
String desription
Address[] addresses
}
Address
{
String state
String suburb
}
Within a data grid which I am binding to the Product class, I want to display only the Product "name" field but have it grouped by the "state" field of the first item of the addresses collection (within my data I am ensuring that every Product has at least one Address)
So my data grid would look somthing like:
VIC
- Product Name 1
- Product name 2
NSW
- Product Name 3
- Product Name 4
Is this possible? To date I can only get grouping working on fields within the Business (or top level) class, not fields from the Address (or nested) class.