The GridTreeControl provides support for the clipboard copy and paste operations and not for ReadOnly Grid and columns. You can achieve this by changing the read only value of the Grid and Gridcell for the readonly column at runtime by using the ClipBoardPaste and ClipBoardPasted events in the GridTreeControl.
Refer to the following code example to wire the ClipboardPaste and ClipboardPasted events in the GridTreeControl.
You need to set ReadOnly as false for both Grid and Gridcell to allow the paste operation in the ClipBoardPaste event when the Grid and Gridcell have ReadOnly as true. Please refer to the following code example that illustrates this.
The ClipboardPasted event fires after pasting the data in the GridTreeControl and you can set an actual value, True, to ReadOnly property of the Grid and GridCell. Refer to the following code example that illustrates this.
The following screenshot displays the row to be pasted.
Figure 1: Row to Copy
The following screenshot displays the row pasted.
Figure 2: The copied Row pasted
You can refer to the following sample link to handle the copy and paste operations for the ReadOnly Grid and columns.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:||.NET Framework:||Product Version:|