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
560
Formula across multiple GridRows
posted

Hi,

My grid has few columns whose value depends on values of  next row previous column,  current row previous column and earlier row previous column. Whats the best way to Handle such a thing.  

As brief example col2 values as below are calculated by current row col1 - previous row col1. Is there a better way to do other than using InitializeRow event?

Col1      Col2

2              2

3            -1

5            -2

2             3

Thanks

  • 469350
    Suggested Answer
    Offline posted

    Hi,

    sbprasadrao said:
    Is there a better way to do other than using InitializeRow event?

    What do you mean by "better"? Better in what way? What wrong with using InitializeRow?

    Another way to do this would be to use an UltraCalcManager and apply a formula to the column(s). But I'm not sure it's really any better than using InitializeRow. It's less code, but that shouldn't matter, since I assume your code is already written. :)