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 Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeRowEventArgs) Handles 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
Oops, nevermind. I found the "Style" property of the column and was able to get the spinner to show.
BUT, I am having a problem with the MinValue and MaxValue. Each column of each row has different values. Is "InitializeRow", as show in the example above, not the place to set those properties?
Thanks again,
Scratch, this thread. I'm starting a new one because the question has become "How do you set the min/max value on a cell level."
Hello Mike,
I have found your other forum thread and I will answer you there:
http://community.infragistics.com/forums/t/50657.aspx
Please let me know if you have any other questions.
Hi, Danko. Thanks for the help.
No other questions here, I'm following the other thread.