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
245
UltraNumericEditor - how to suppress decimal places
posted

I am using UltraNumericEditor with Spinbutton with restricting input between 1 and 180. While in edit more I see integer but when I click outside of the cell the value shows as "x.00 "

I do not want to see "decimal places", although user can't enter any decimal value.

How can I suppress decimal values ?

            m_uNumericEditor = new UltraNumericEditor();

            m_uNumericEditor.SpinButtonDisplayStyle = Infragistics.Win.ButtonDisplayStyle.Always;

            m_uNumericEditor.DisplayStyle = Infragistics.Win.EmbeddableElementDisplayStyle.VisualStudio2005;

            m_uNumericEditor.NumericType = NumericType.Integer;

            m_uNumericEditor.MinValue = 1;

            m_uNumericEditor.MaxValue = 180;

            m_uNumericEditor.MaskInput = "nnn";

Thanks

Parents Reply Children
No Data