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
163
UltraGridAction.Paste - Customizing Error Message
posted

When I try to paste text from Windows Clipboard on a cell in UltraGrid (through UltraGridAction.Paste) whose type is not compatible with the cell's Column Data Type, UltraGrid throws an exception message which has some more detail. I want to handle that exception myself and display a rather customized message, just like; "Data type is not compatible" or  "Cannot paste value".

Is there any way to achieve this?

  • 37774
    posted

     You could try handling the Error event of the grid to process this yourself, though you would likely also need to set e.Cancel to True to prevent the grid from displaying its own message.

    -Matt