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
795
ultranumeric editor allowing nulls even when nullable=false
posted
I have declared an ultranumeric editor and assigned it to a ultragrid in the editorComponent
The declaration is as follows
UltraNumericEditor ultraNumEditor = new UltraNumericEditor();
ultraNumEditor.SpinButtonDisplayStyle = Infragistics.Win.ButtonDisplayStyle.Always;
ultraNumEditor.FormatString = "#0";
ultraNumEditor.NumericType = NumericType.Double;
ultraNumEditor.MaskInput = "nnnnnnnnnnn";
ultraNumEditor.Nullable = false;
grdTrades.DisplayLayout.Bands[0].Columns[COLUMN_COMMITTEDQUANTITY].EditorComponent = ultraNumEditor;
grdTrades.DisplayLayout.Bands[0].Columns[COLUMN_COMMITTEDQUANTITY].CellActivation = Activation.AllowEdit;

The above editor is allowing the user to clear the data and keep it blank, in which case it returns DBNull as the value. I want the NumericEditor control to automatically set the blank value to zero. Also in the above I want the user to enter only non negative numbers without any decimals.
Parents
No Data
Reply
  • 23930
    Offline posted

    Hello Puneet,

    I have investigated your issue and I have asked our engineering staff to examine this further. To be able to track this issue I have created a support ticket for you in our internal tracking system with ID: CAS-129396-R8N4Y7. So I will update you for the progress of this matter trough the mentioned case.

Children