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
15
NumericEditorProvider limit decimal to have only one whole integer
posted

I'm working with a WebDataGrid and I need to be able to add values to a database that has a datatype of Decima(4,3). In other words, the values must be something like 1.234, 0.128, 9.001, etc. If I try to add something like 11.120 or 32.15, I get an exception.

Is there a way to apply a mask (or something similar) to a NumericEditorProvider that will limit the user's input to only allow for a single whole integer? I could use validation but that seems like a kind of round about way of doing it.