Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
430
Child band column sum in parent band?
posted

So Ive been breezing the Forums trying several ways to add a Summery of my child bands into their parent band. Ive really had little to no luck. Im still new to infragistics So I will ask you guys:

I have parent band Foo

Child band: Bar

I need the Price in child band bar To be summed for the multiple child bands and the total placed into the Subtotal column in Foo.

I'm working with a dynamically built grid that is receiving an object and need to handle this in the initialize grid or initialize row routine. Should I provide a formula and pass it to the column using the summarize.add? or can I add the formula directly to the cell?

PS Im a vb .net guy, Try to avoid the C# code.

Thanks in advance!

Parents
  • 469350
    Offline posted

    Hi,

    Just to be sure I understand... you want to have a cell in band Foo which contains the calculated sum or a column in band Bar for all of the child rows of that row. Is that right?

    The easiest way to do this would be to add a summary to the child band. This will sum up the child rows under parent (Foo) row. Then you could simply handle the InitializeRow event and populate the cell in each row in band Foo with the value from the summary of it's child rows.

Reply Children