Apologies if this is an oldie, I didn't find anything in the forum that matched.
Using the Adapter model...
I have a reasonably complex object graph and I don't want to pull back the full object graph as defined by the relationships - no problem I set my prefetch path as appropriate.
In the object graph I have an account class that contains a collection of credit objects (property account.Credits) and a collection of debit objects (account.Debits). In my prefetch path I choose not to fetch the collection of debit objects but I do fetch credit objects. When the account class is fetched, account.Debits is set to an empty EntityCollection, the account.Credits is populated.
OK, when I bind account to an Infragistics grid, the grid will automatically set up the Debits as a band under account even though there are no items in the collection - is there an easy way to stop this?
Is it possible to have the account.Debits EntityCollection set to null rather than an empty collection if it is not included in the prefetch path? Or is there an easy way to stop the Infragistics grid from creating a band for the Debits if it is empty? I still want to see the Credits collection underneath account.
Cheers,
Stef