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
20
UltraNumericEditor and spin buttons
posted

I use a UltraNumericEditor that is set to have 3 decimal places. I have enabled the spinnerButton so I can easily alter the number. When you click the spinner it increments the number by either 1 or 0.001. Ideally I would like to change this by 0.1. Can this be done? 

When the value of the decimal reaches 0.999, 1 click up sets the value to 0.000, I would like this to show 1.000.

I thought about capturing the EditorSpinButtonClick event and maintaining it manually but the event doesn't seem to trigger. Am I missing something.

I've added the eventhandler like so:

this.ultraNumericEditor1.EditorSpinButtonClick += new Infragistics.Win.UltraWinEditors.SpinButtonClickEventHandler(this.ultraNumericEditor1_EditorSpinButtonClick);

And my event handler is simply:

private void ultraNumericEditor1_EditorSpinButtonClick(object sender, Infragistics.Win.UltraWinEditors.SpinButtonClickEventArgs e)

{

Console.WriteLine(ultraNumericEditor1.Value);

}

 Ideas please?