Copy and Paste Rows in GridDesktop within the Control and between the Control and Excel
Contents
[
Hide
]
If you want to enable copy and paste rows in GridDesktop within the control or between control and excel, then please set the GridDesktop.ClipboardCopyPaste property to true. You can set this property in design time or in code. The default value of this property is false. Currently, it can only copy and paste cell values and it will not copy any other setting of the cell like format, border style and so on.
Setting GridDesktop.ClipboardCopyPaste property in Design Mode and Run Time
The following sample code sets GridDesktop.ClipboardCopyPaste property in Run Time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
/* | |
* Indicates whether to copy/paste based on clipboard, so that it can copy/paste with MS-EXCEL. | |
* It will only copy/paste cell value and will not copy any other setting of the cell like format, border style and so on. | |
* The default value is false. | |
*/ | |
gridDesktop1.EnableClipboardCopyPaste = true; |