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
1465
Embed UltraNumericEditor in Column
posted

Hello.

I followed the instructions found at http://help.infragistics.com/NetAdvantage/WinForms/2010.1/CLR2.0/ and dropped an UltraNumericEditor on the form and set the spinbuttonstyle to Always.

The problem that I'm having is that the Min/Max value is different for each row, and as I change the value in one cell, the functionality of the other cells is affected. For example, if one cell has a max value of 1 and a different cell has a max value of 10, and I change that value to 10, I can then go back to the cell whose max value is 1 and change it to 10.

In the InitializeRow event for the WinGrid, I'm doing this (MAXQTY comes from the database/UltraWinDataSource):

    Private Sub ugAdditionalItems_InitializeRow(ByVal sender As ObjectByVal e As Infragistics.Win.UltraWinGrid.InitializeRowEventArgsHandles ugAdditionalItems.InitializeRow
        
        Dim un As UltraWinEditors.UltraNumericEditor = CType(e.Row.Cells("QTY").EditorComponentResolved, UltraWinEditors.UltraNumericEditor)
        un.MinValue = 0
        un.MaxValue = CInt(e.Row.Cells("MAXQTY").Value)

    End Sub
What's the problem?
Thanks in advance,
Mike
Parents Reply Children
No Data