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
229
Formula over two bands
posted

Hi, I try write a formula that calcs the sum of a column in band 1 and display the result in a row in band 0. Is that possible?

I tried the following with no success:

ultraGridFeature.DisplayLayout.Bands[0].Columns["Cost"].Formula = "sum([//ultraGridFeature/SubFeature/Cost(*)])";

 

best regards

Clay

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Clay,

        I think the problem is that you are using the grid namd. This formula needs to be relative to the row, but by specifying the name of the grid, you are losing the row context.

    Try this:

    ultraGridFeature.DisplayLayout.Bands[0].Columns["Cost"].Formula = "sum([SubFeature/Cost])";

Children
No Data