I have set a column's style with ColumnStyle.IntegerPositiveWithSpin. When a user clicks on the increment button I want the value to change by 100 instead of 1. Is there a property or event I can handle to do this?
Regards,
Albert
Hi Albert.
What version of the controls are you using? A new SpinIncrement property was added to the editor in the latest release (v8.2).
Hi Mike,
I am using v8.2. I used the line of code below to set the column style. How can I access the SpinIncrement from here? Can I cast the ultraGridColumn.Editor to a SpinEditor and access it that way?
ultraGrid1.DisplayLayout.Bands[0].Columns[annualRevColumn].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.IntegerPositiveSpin;
You could do something like this:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns["Int32 1"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.IntegerPositiveWithSpin; EditorWithMask editorWithMask = (EditorWithMask)e.Layout.Bands[0].Columns["Int32 1"].Editor; editorWithMask.SpinIncrement = 100; }
But... the grid uses the same editor for multiple columns by default. So this will probably affect all columns whose style the IntegerPositiveWithSpin. That might be what you want. But if not, what you would do is create a new EditorWithMask and assign it to the column.
How can i do in version 10.2?
i tried EditorWithMask thing but its not working ...
Please help!