Although in following code I an setting SpinButtonDisplayStyle to show "Always", I do not see spin button in that cell unless I move over mouse over that cell.
Is there any way I can show it forever ?
Also I've set the width of the grid column to 15 but I do not see enough space for spin button and integer number. I have to manual expand the column.
Thanks
Vaquar
m_uNumericEditor = new UltraNumericEditor();
m_uNumericEditor.SpinButtonDisplayStyle = Infragistics.Win.ButtonDisplayStyle.Always;
m_uNumericEditor.DisplayStyle = Infragistics.Win.EmbeddableElementDisplayStyle.VisualStudio2005;
m_uNumericEditor.NumericType = NumericType.Integer;
m_uNumericEditor.MinValue = 1;
m_uNumericEditor.MaxValue = 180;
m_uNumericEditor.MaskInput = "nnn";
Thank you so much for such a quick response
Vaquar said: Although in following code I an setting SpinButtonDisplayStyle to show "Always", I do not see spin button in that cell unless I move over mouse over that cell. Is there any way I can show it forever ?
Set ButtonDisplayStyle on the grid column to Always.
Vaquar said:Also I've set the width of the grid column to 15 but I do not see enough space for spin button and integer number. I have to manual expand the column.
Use the PerformAutoResize method on the column.
Vaquar said:I do not see spin button in that cell unless I move over mouse over that cell.
Vaquar said: Also I've set the width of the grid column to 15 but I do not see enough space for spin button and integer number. I have to manual expand the column.
One possible suggestion is to set one of these properties, for example:
m_uNumericEditor.Width = 50; or m_uNumericEditor.AutoSize = true;
Please if you have any questions do not hesitate to ask me
Regards