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
485
pasting in ultragrid
posted

Is it possible to not have any warning box pop up when i'm pasting a text to an int or date column? It should just do nothing instead.

  • 469350
    Offline posted

    Hi,

    I'm pretty sure that when an error like this occurs, the grid fires the Error event. The event args will tell you what kind of error occurred via the ErrorType property on the event args. If it's MultiCellOperation, you can get more information about the rror from e.MultiCellOperationErrorInfo.

    To prevent the grid from displaying the message, just set e.Cancel to true.