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.EditorWithMasknum.ExpectedType = GetType(Single)num.SpinButtonDisplayStyle = Infragistics.Win.SpinButtonDisplayStyle.OnRightDim 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
You need to set the MaskInput property of the grid column to allow negative numbers. You do this by putting a minus sign in the mask. For example: "-nnnn.nn"
The problem with this is that each cell/row in the column could have a different data type and therefore a different input mask. Is there a way of setting the MaskInput at the Cell level?