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
145
How can I ignore warnings caused by AllowClipboardOperations
posted

I am working with a large grid which has some read only columns. When I try to paste cells out of the xls in to the grid I get an error message that the cell is read only for each read only cell in every row. Even if the cell is blank in xls it gives the error message.

Message: The "Label" cell is read-only. Continue with the remaining cells?

Is there a setting that can be used to ignore these warnings?

Parents
No Data
Reply
  • 54937
    Verified Answer
    Offline posted

    During a single paste operation you would get that error once for each read-only field but you shouldn't get it for the same field in different rows in the same operation. The message is intended to make the end user aware that not all of the information being pasted, etc. could be processed. Are you sure you're getting it a separate time for each record in the same operation? With regards to the specific question there are two options. One is to handle the ClipboardOperationError event and set the DisplayErrorMessage to false if the e.Error is ReadOnlyCell. Another option would be to set the Field's DisallowModificationViaClipboard to true.

Children