c1FlexGrid currency format issue

Posted by: sebastian73 on 21 March 2018, 4:23 am EST

    • Post Options:
    • Link

    Posted 21 March 2018, 4:23 am EST

    Hi,

    I need some help. I’m trying to format a column in currency format with the following code:

    
    grid.Cols.Count = 2
    gridAllowEditing = True
    grid.Cols(1).DataType = GetType(Decimal)
    grid.Cols(1).Format = "c"
    
    

    My problem, when I enter values upper than 9999, the cell value resets and its not possible to enter values with more than four digits.

    Any suggestions?

    Thanks in advance!

  • Posted 21 March 2018, 4:55 pm EST

    Hi !

    I am not able to see any such issue in this code with the latest build of 2018-V1. Please refer the attached sample.

    Also, I would need you to confirm build version and system environment details at your end.

    Prj_CurrencyFormat.zip

    Best regards,

    Meenakshi

  • Posted 22 March 2018, 4:48 am EST - Updated 3 October 2022, 5:58 pm EST

    I tried your project in my environment and it’s failing.

    Just in case I used the C1Live to update to version 4.0.20181.296 and updated framework to 4.7.02558. I’m using VS 14.0.254341 U3 on Win7.

    The problem persist, when I enter a number with more than four integer digits the field resets.

    I attached a gif with the project working and me trying to type “12345”

  • Posted 22 March 2018, 9:27 pm EST

    Sebastian!

    Can you please confirm the VS version number once again? I tried the same in the environment : VS 15 (version 14.0.25431) + Windows 7, but with no success.

    Meanwhile, I have a workaround for you in the attached sample. Please check (in Column 2) if this helps you.

    Prj_CurrencyFormat.zip

    Best regards,

    Meenakshi

  • Posted 23 March 2018, 5:06 am EST

    Hi Meenakshi!

    Thanks for your time.

    I updated everything in my computer and the problem continues, your workaround works great. I Checked on another system and both cases works well, so I’ll reinstall my computer.

    Thanks!

    Sebastian.

  • Posted 25 March 2018, 1:51 pm EST

    Sebastian! I’m glad that I could help you.

    • Meenakshi
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels