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
210
Form w/ multiple WinGrids - formulas not working.
posted

Hello -

I have a tab control with two pages.  Each page has an WinGrid control.  When I started coding, I focused on just one grid.  In this grid I have "running balance" column that takes a value from the previous row, adds/subtracts values in the current row and the result is shown in an unbound column.  I have an UltraCalcManager in the form, and the following code worked just fine:

 

            Me.UltraGrid1.DisplayLayout.Bands(0).Columns.Add("Balance", "Balance")

            With Me.UltraGrid1.DisplayLayout.Bands(0).Columns("Balance")

                .DataType = GetType(Double)

                .Formula = "if      " & _

                "( " & _

                 "iserror ( [Balance(-1)] ), " & _

                 "0, " & _

                 "[Balance(-1)] " & _

                ") + [Charges] - [Credits]"

            End With

 

Now when I add a second grid, the formula no longer works.  Again, everything was working just fine with just the single WinGrid.  What am I not doing correctly?  Thanks for your time!

Parents Reply Children
No Data