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
180
Negative values with EditorWithMask
posted

I am implementing an EditorWithMask editor in a specific UltraGridCell so that I can add an EditorButton on the right as well as a SpinButton.  The problem I have with the code below is that it will not allow negative values to be entered.  Please can someone help?

Dim num As New Infragistics.Win.EditorWithMask
num.ExpectedType = GetType(Single)
num.SpinButtonDisplayStyle = Infragistics.Win.SpinButtonDisplayStyle.OnRight
Dim btn As New Infragistics.Win.UltraWinEditors.EditorButton()
btn.Text = "::"
AddHandler btn.Click, AddressOf <SubProcedure>
num.ButtonsRight.Add(btn)
row.Cells(0).Editor = num

I have tried setting the Cell Style as below, but this makes no difference

row.Cells(0).Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DoubleWithSpin

 

Parents Reply Children
No Data