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
How Can I Do a Loop: UltraGrid
posted

Hello everybody, Please, I need to do same calculations when the user has finished entering data, Example:

Col1--Col2--Col3

1--50--A

2--60--B

3--70--C

I need to obtain: 50+60+70

This should be done when the user clicks the button to record (I can't use AfterRowUpdated)

Please, any idea, In the previous version of UltraGRid (SSDBGrid...... ) I could use:

GrdMaterial.MoveFirst

ForintI = 0 To GrdMaterial.Rows - 1
            If IsNumeric(Trim(GrdMaterial.Columns(1).Text)) Then
                numeropiezas += Val(GrdMaterial.Columns(1).Text)
            End If
            GrdMaterial.MoveNext
Next intI

Please, any idea,

Thanks in advance, God Bless you.

Parents
  • 53790
    posted

    Hello ErosDark,

    I try to reproduce your scenario in a small sample. Could you please take a look at the attached sample for more details, where I`m using UltraGrid`s summary and UltrsCalcManager. If you have any questions, feel free to write me

    Regards

Reply Children