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
295
Allow entering of only numerics in ultrawingridcell in edit mode
posted

How can I allow the entering of only numbers in ultrawingridcell in edit mode

Parents
No Data
Reply
  • 69832
    Verified Answer
    Offline posted

    Two possible approaches come to mind:

    1. Set the UltraGridColumn.MaskInput property to a numeric-only mask, for example, 'nnnn' or 'nn.nn'.

    2. Handle the control's KeyPress event and set the Handled property of the event args to true if the incoming character is non-numeric.

Children