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
384
UltraNumericEditor used in grid will not allow for null (no value)
posted

I have a UltraNumericEditor (defined as below) that I use as the EditorControl for a UltraDataGrid cell.  But when I try to leave the control empty I get the following error displayed:

DATA ERROR
Unable to convert from '(null)' to 'System.Int32'

Definition
this.uneCheckValues.Location = new System.Drawing.Point(767, 109);
this.uneCheckValues.MaskClipMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.IncludeBoth;
this.uneCheckValues.MinValue = 0;
this.uneCheckValues.Name = "uneCheckValues";
this.uneCheckValues.Nullable = true;
this.uneCheckValues.PromptChar = ' ';
this.uneCheckValues.TabIndex = 16;
this.uneCheckValues.Visible = false;

Entry in the cell is not required, so how can I allow for nulls (if no entry)?

Parents Reply Children
No Data