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
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.
Thank you for the suggestion. It worked.
Another issue I have is with an ultragrid, which has been coded to be populate (corresponding to a particular check) in a tab activation. I am talking about a windows application, which has this tab. The thing is, that the functionality is working fine while debugging/running the code. However, after publishing and deployment of the same code, we are trying to test this functionality after installing the deployed application and its not working. The grid doesn't get populate for the same record.
We have double checked the data/code, there was no issue in deployment as well, since all the other functionalities were working fine. Are you able to think of a reason for such anomaly?
Thanks,
Harshit
I'm afraid I don't understand the question. But it doesn't seem to have anything to do with the previous discussion in this thread. You should start a new thread and include a sample project or detailed instructions on how to reproduce the problem.
Just a gentle reminder. Could you please have a look at my last issue description and suggest?