In my supplied example, if everything is databound, when you change a value in the 'Child' data, the aggregate column is also automatically updated.
Are the fields created by the query API also updated dynamically without a roundtrip to the database?
Edit:
If I add the aggregate columns after the collection is loaded, then I receive an Null reference exception. It seems that the Table property in the EpPlan class is Null... So adding any columns is not possible...
The addAggregateColumns function loops through the Entities in the collection, and calls AddAggregateColumns for every entity. The code for that is a few posts earlier...
Does work (well, at least adding the columns does LOL):
Code:
Dim coll as new EpPlanCollection
coll.addAggregateColumns()
coll.LoadAll()
Doesn't work:
Code:
Dim coll as new EpPlanCollection
coll.LoadAll()
coll.addAggregateColumns()