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
415
Disable Copy/Paste Context Menu in cell that has UltraComboEditor in it
posted

Is there a way to disable the copy/paste context menu for this scenario.  I can stop control-V but also need them to not be able to paste.  I've tried change the Activation to no avail.  I want to do this on a column by column basis.

Any ideas?

  • 469350
    Suggested Answer
    Offline posted

    Hi,

    I'm a little confused by your question. Ctrl-V is paste. So I think you mean you don't want the users to be able to copy? That seems a bit unusual.

    Do you want the users to be able to type into the combo cell at all? If you want to force the users to only choose from the list, then the easiest thing to do is set the Style on the column to DropDownList.

    If you want to change the ContextMenu, then you can assign a ContextMenu to the grid using the MouseMove event. But this will not prevent CTRL+C and CTRL+V from working, it will just hide the menu, I think.