HI!
I put a numeric editor component in a grid column. The numeric type is Double and I set the MaxValue and the MinValue to Double.MaxValue and Double.MinValue. MaskInput et FormatInfo are null.
But when I go in edit mode to the column in the grid, the column has now a mask input of currency. Why does it happen ? I inspect the column properties and the mask input property is null.
Somebody can explain what happens here ? I use WinGrid 10.2
Best regards,
Benoit
Most likely the DataType of the underlying DataColumn is System.Decimal, which is why the grid resolves the MaskInput property to a value that is appropriate for that type. You can set it to something else if you don't want a currency mask.
Thanks for the reply. It seems to be the problem.
But why does it do something like this? I have a lot of decimal in my database, but they are not always currencies. I use decimal numbers for a lot of purposes such as percentage etc.
The fact that grid "assume" a currency mask input because the data type is decimal causes me more problems than it helps. Moreover, the mask input of the column is null so it should not assume tha this is a currency value.