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
755
"section is empty" exception in UltraNumericEditor
posted
  • Message: "section is empty"
  • Type: System.Exception
  • Source: "Infragistics2.Win.v8.1"
  • StackTrace:    at Infragistics.Win.UltraWinMaskedEdit.NumberSection.ToDecimal()

 I have a UltraNumericEditor:                           

ultraNumericEditor1.NumericType = NumericType.Double;            

ultraNumericEditor1.DataFilter = new PercentageDataFilter();   

ultraNumericEditor1.MaskInput = "nnn\\%";               

ultraNumericEditor1.SpinButtonDisplayStyle = Infragistics.Win.ButtonDisplayStyle.Always;               

ultraNumericEditor1.MaxValue = 100;               

ultraNumericEditor1.FormatString = "##0\\%";

When I delete all numbers from the control, that exception is raised from i-don't-know-where, but is not my code, and I don't know how avoid it.

 How could I avoid the user introduce values with the keyboard? I only want that the user can modify de value with the spin buttons.

Cheers

Parents
No Data
Reply
  • 37774
    posted

     Are you sure that the exception is not triggered by your DataFilter (i.e. it's in the call stack somewhere)?  I haven't hit this error before, and it's hard to say what's going on just with the information that you provided.

    -Matt

Children