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
305
Paste not working for some cells after upgrade
posted

Hi Sir,

I have implemented Ultradropdown in my wingrid and it is working perfectly fine. The issue occurs when I copy an alphanumeric/numeric value and paste it into the ultradropdown box, it pops up the error message [Unable to convert from "System.String" to "System.DateTime"]. I tried to debug the code but I was unable to find from where this message is getting triggered.

Please note that it is not a date-time type text box and there is no error message when I paste an alphabetical value. Also, after this error message,  the value gets entered (pasted) as expected. It's just that I need to modify this message to some user friendly message like "copy/paste is not allowed for this field".

Kindly help me out.

Thanks,
Harshit

Parents
  • 469350
    Offline posted

    Hi Harshit, 

    If you just want to change the error message, you can handle the grid's Error event. Look for e.ErrorType == ErrorType.MultiCellOperation. You can then examine the error and set the ErrorText to whatever you want, or cancel the error and display a MessageBox of your own or whatever else you want to do. 

Reply Children