Sir,
In Our Project , we need to show list of numerics(integer,double, decimal format) values in UltraCombo. And input should be numeric in UltraCombo. So we restricted the Non numeric entry in KeyPress event. But we can able to copy alpha characters and special characters using Ctrl+C and Context menu paste. How to handle prevent the Non numeric using Ctrl+C and Context menu paste? I need Numeric combo which supports only numeric values in all case (Keypress,Ctrl+C,context Menu) . How to achieve this requirement ? Can you give proper solution as soon as possible ?
I think you would have to handle this the same way you handled the other characters. You would trap KeyDown and watch for Ctrl+V or Shift+Insert and check the data in the Clipboard and if it contains invalid characters, mark the keystroke Handled.
You will probably also need to replace the built-in context menu on the control with one of your own to prevent the user from pasting via the menu.
Hi,
i already set to numeric type . But it will throw validation error at validating event. i need to restrict alpha character while entering the input such keypress , Ctrl+C or Context Menu paste.Similarly I need to change the Numeric combo similar to "UltraNumericEditor". I also need to change one UltraGridCell with Dropdown similar to "UltraNumericEditor". Can you give suggestion as soon as possible? Thanks
you can set the datatype of the column to the required format e.g. decimal.