Reputation: 1
I am implementing copy and paste in a table. The problem is that when pasting, I need to change the clipboard before pasting. I do it in the GridControl_PastingFromClipboard(object sender, PastingFromClipboardEventArgs e)
method. With this approach, the old clipboard is lost but I need to return the old buffer after pasting. How do I do this?
I tried to save the buffer, but I didn't find any event triggered after insertion to return it.
Upvotes: 0
Views: 46
Reputation: 1
It turned out that you need to add 'e.Handled = true' to the beginning of the method and in the end 'table.OnPaste(); Clipboard.SetText(_clipboardOld);'
Upvotes: 0