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
175
Display decimals in disabled maskededit
posted

 

Is there a mask or property I can set so that decimals show when a masked edit is disabled.  123.50 is what i want displayed but 123.5 is displayed when I disable the field.  The mask I am using is {double:-3:2}

 

Never mind.  it's my fault

Parents
  • 69832
    Verified Answer
    Offline posted

    The control's enabled state has no bearing on the formatting of the value. Since the control is disabled it cannot be focused, and when the control does not have focus, the value is not formatted the same way. You can set the FormatString property to control the way the value is displayed when the control is not focused; in this case you would want to use something like "###.00".

Reply Children
No Data