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
480
Show MunericUpDown control in UltraGrid
posted

How can I Show MunericUpDown control as one of the editable columns in UltraGrid?

Please help on this.

Thanks,

  • 69832
    Verified Answer
    Offline posted

    Strictly speaking the answer to your question is to use the UltraControlContainerEditor to host a NumericUpDown control, and assign the UltraControlContainerEditor to the column's EditorComponent property.

    Another approach is to use the column's masking and spin button capabilities to do it, like so:

    UltraGridColumn column = e.Layout.Bands[x].Columns[y];
    column.MaskInput = "nnn";
    column.MinValue = 0;
    column.MaxValue = 999;
    column.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.IntegerWithSpin;
    column.ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;