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
1225
HELP: UltraCalcManager doesn't work for me
posted

Hello, everybody,

Please, I need to update my txtUnits Control when my UltraGrid change the value from column two.

All is ok, but my control txtUnits doesn't change and I don't see any error. Any Idea?

Regards

This is my code:

    Private Sub CalcUnits()

        Try
           ucmCalc.SetCalcSettings(txtUnits, New CalcSettings("K", Nothing, "sum([//grdMaterials/Band 0/units])", "Value", CalcErrorIconAlignment.None))
            ucmCalc.ReCalc()
         
        Catch ex As Exception
            Throw
        Finally

        End Try
    End Sub

    Private Sub grdMaterials_AfterCellUpdate(sender As System.Object, e As Infragistics.Win.UltraWinGrid.CellEventArgs) Handles grdMaterials.AfterCellUpdate
        Try
          
            Call CalcUnits()

        Catch ex As Exception
            throw
        Finally

        End Try
    End Sub