Hi,
I'm having a editable grid containing Datetime editor field. My application runs in partial trust. When I try to copy a date and paste it in a new row of same field it throws a error and the application crashes.
Is there any soultion to avoid Paste option in datetime field or any other solution to avoid this error.
Can somebody help me in this regard?
Thanks in advance.
- Arthi
This looks like a bug. While it is true that full clipboard support is not allowed within partial trust, text clipboard support is. Since the masked editor is just dealing with text this should work and this seems like a bug. I would recommend reporting the issue to the support group and referencing issue # 15623.
Actually I spoke too soon. I was basing my statement on some info on MS's site regarding the sandbox security permissions allowing plain text clipboard usage but it looks like that may only be for the WPF provided controls since a security exception happens when using any of the public members of the Clipboard class (e.g. GetText, SetText) under partial trust. I would still report the issue since it should not result in an unhandled exception and perhaps we can workaround this in some way.