Home Forums WinForms controls Xceed Grid for WinForms comma instead dot decimal pushing dot key.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17595 |

    Hi

    I have a cell in my grid that has a Numerictext Editor as Editor manager, configured in edition mode.. When i write in the cell a number, i want to use the numeric keyboard but i have a problem that i don’t know how to solve.  i want that appears a comma instead a dot when i push the dot key in the numeric keyboard.

    999.99 –> 999,99

    I tried to use the keypress event but it doesn’t work.

     

    Please…any idea?

    Imported from legacy forums. Posted by Aurelio (had 2272 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Aurelio, 

    Can you give us more information on what you are trying to acheive?

    By changing the ‘ . ‘ to a ‘ , ‘  do you mean only for presentation? or would the number 999.99 become 999,99.00?  

    You can change the “Digital Symbol” to “, ” or “.” from the “Region and Language” settings  of your windows Control panel. 

     I hope this is what you are looking for.  

     

    Imported from legacy forums. Posted by Michel [Xceed] (had 218 views)

    User (Old forums)
    Member
    Post count: 23064

    Just in the presentation.

    When i type 999.999,00 , the comma i typed by the comma key, but in this case i don’t type the thousand dot, i just type the comma of the decimal, but i want that when i press the dot key in the numeric keyboard it appear in the numeric textbox as comma.

     

    i hope have explained well.

     

    thx

    Imported from legacy forums. Posted by Aurelio (had 309 views)

    Xceed Support
    Member
    Post count: 5658

    Just to get this right, 

    you need to type ” 9 9 9 . 9 9 9 , 0 0 ” and you want it to appear as ” 9 9 9 , 9 9 9 . 0 0 ”

    and the underlying value would be 999999.0?  

    Imported from legacy forums. Posted by Michel [Xceed] (had 401 views)

    User (Old forums)
    Member
    Post count: 23064

    i need to type ” 12345.12 ” and i want it to appear “12.345,12”.  when i type a . i need to appear as comma.(,)

    Imported from legacy forums. Posted by Aurelio (had 300 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Aurelio, 

    This can be achieved by setting the DecimalSeparatorInputChars to any char you want to be converted to a decimal char: 

    example:

     yourNumericEditorInstance.Template.DecimalSeparatorInputChars = new char[] { ‘.’, ‘,’ } 


    Imported from legacy forums. Posted by Michel [Xceed] (had 1708 views)

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.