We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

customize paste

I need to customize copying and pasting of cells in a grid. For example, I want to copy the contents to clipboard and get the data form clipboard and paste them in the grid. I do not want to use gridcontrol.cutpast.paste() as it poses many problems when i paste multiple cells. Kindly let me know the possible way (or samples) of pasting the values in cells from Clipboard.

1 Reply

AD Administrator Syncfusion Team July 13, 2005 11:36 AM UTC

You can handle the grid.Model.ClipboardCopy and grid.Model.ClipboardPaste events and do what ever pasting and copying you want to do. You only need to set e.Handled = true to tell the grid not to do its default code. Here are some forum threads you can look at. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=9906 http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=9389 http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=16088 http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=17940 http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=22163

Live Chat Icon For mobile
Up arrow icon