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
725
Positive and negative values
posted

I'm working with Infragistics2.Win.UltraWinGrid.v11.1.        

I have a grid editable with amount column and I should be able to store positive and negative values. But I can't insert negative values.
How I can config this column??

Me.GridFacturas.DisplayLayout.Bands(0).Columns("BASE_IMPONIBLE").Format = "-###.###.##0.00"
Me.GridFacturas.DisplayLayout.Bands(0).Columns("BASE_IMPONIBLE").MaskInput = "-nnn,nnn,nnn.nn"
Me.GridFacturas.DisplayLayout.Bands(0).Columns("BASE_IMPONIBLE").MaskDisplayMode = UltraWinMaskedEdit.MaskMode.IncludeLiterals
Me.GridFacturas.DisplayLayout.Bands(0).Columns("BASE_IMPONIBLE").MaskClipMode = UltraWinMaskedEdit.MaskMode.Raw
???

I can't to indicate the sign - in the cell. (DataType is Double).
Can anyone help me?

Thanks

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    It isn't neccessary to set both the Format and the MaskInput to essentially the same thing. I tried this out using the same code and I do not have any trouble entering a negative number, but I did notice that there is a bug that is causing the minus sign to show up twice. This bug appears to be fixed in the latest version, and it can be avoided by simply not setting the Format property (which you don't need, anyway).

    I am attaching my sample here so you can see if you get the same problem. If you do, then this must be a bug in your version of NetAdvantage and the solution would be to update to the latest service release.

    If my sample works for you, then something else must be going on in your application that is causing the problem.

    WindowsApplication2.zip
Children