MultiRow Windows Forms > Developer's Guide > Using MultiRow > Managing Data > Working with Clipboard |
The user can copy and paste cell values in GcMultiRow using the clipboard.
To allow clipboard operations, set the GcMultiRow.AllowClipboard property to True. The following clipboard operations are allowed in this case.
The data copied to the clipboard uses a comma to separate the cell values of the Cell.FormattedValue property, and separates the rows with a new line code (vbCrLf in Visual Basic, "\r\n" in C#). The cell order is based on the cell index (Cell.Index). To change the cell index at design time, refer to Changing Cell Index in the Designer.
When the clipboard operations are executed on the GcMultiRow control, the GcMultiRow.ClipboardOperating event occurs. You can use this event to cancel the clipboard operation using your own conditions. For example, you can cancel the built-in clipboard operations and implement your own clipboard operations.
When you set the value of the TextBoxCell.PasswordChar property, you cannot copy the cell values to the clipboard. An InvalidOperationException is thrown if the user tries to copy in this state. In order to suppress the display of the message box due to this exception, use the GcMultiRow.DataError event.