Click or drag to resize

DataBrowser.Paste Method (Typed)

X#
Paste the current contents of the clipboard into the current data browser cell.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD Paste() AS VOID
Request Example View Source
Remarks
How clipboard data is pasted into the data browser depends on the following: The current selection The current selection can be a few characters in a cell, an entire cell's contents, several cells, several records, or nothing at all. If a few characters or an entire cell is selected, the selected characters are overwritten with the pasted data. Note that in this case, the standard tab-separated format accepted by spreadsheet and word processor products is used, as long as the shape of the selection matches. If nothing is selected, the clipboard data is inserted into the current cell (i.e., the one containing the cursor). Note that the data is inserted before the cursor.
Tip Tip
Paste() is not allowed if more than one record is selected.
The Insert key Note that this method changes the fields to which this data browser's cells are linked and, therefore, the changes are subject to validation. The operation leaves the cells blank, but required fields or other validation rules can mark the record as invalid. The operation performed by this method is the same action as is normally performed in standard GUI applications by the Edit Paste menu command (note that under Windows, this menu command is typically linked to the Ctrl+V and/or Shift+Insert accelerators). This standard behavior is automatically provided by X# and, therefore, there is no need to provide a special method for this (in fact, the accelerators work even if there is no menu command).
See Also