Hi
Richard,
Thanks for
your patience.
We can get
the parent record in the following Highlighted code in the
CalculateAggregateFunc() method and you have to calculate the child group record
also in the below method.
Code
snippet[C#]:
public Action<System.Collections.IEnumerable, string, System.ComponentModel.PropertyDescriptor>
CalculateAggregateFunc()
{
return (items, property, pd)
=>
{
var enumerableItems = items as IEnumerable<Data>;
if (pd.Name
== "Price")
{
this.Price = enumerableItems.CountTo<Data>(q =>
q.ProductPrice);
//We can get the child record in the
below line of code
//
this.ChildPrice = enumerableItems.CountToParent<Data>(q =>
q.Collection[i].ProductPrice);
}
};
}
|
For your
reference we have attached simple sample and please find the sample under the
following location.
Sample: NestedWithObserveCollection.zip
Please let us know if you have any
queries.
Regards,
Gobinath
A