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
110
UltraGrid "MaskInput" for Decimal columns
posted

When I set the MaskInput property of an integer or double column to "{double:7.2}" the editor uses the number formatting set at the operating system level (decimal symbol character, digit grouping character).

When I set the MaskInput property of a decimal column to "{double:7.2}" the editor uses the currency formatting set at the operating system level (decimal symbol character, digit grouping character).

Why is this?  How do I control the input mask format of a decimal column to use the number formatting and not the currency formatting?  My decimal column does not represent currency, so why is it using currency formatting and not number formatting?

Thank you.

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    I tried this out with a decimal column in the grid using the same input mask you have here, and I'm not seeing any currency symbol in the cells. Are yuo sure it's the MaskInput that's doing this?

    MaskInput typically only applies to a cell when it is in edit mode. When it's not in edit mode, it's the column's Format that applies.

Reply Children