Demos
Documentation
API
More Samples
Download Wijmo

Clipboard Support

The FlexGrid has built-in clipboard support.

By default, pressing the ctrl+c or ctrl+Insert keys copies the current selection to the clipboard. Pressing ctrl+v or shift-Insert pastes the clipboard content into the grid.

You can disable the automatic clipboard feature by setting the autoClipboard property to false.

Custom Behaviors

You can customize the clipboard actions using the copying, copied, pasting, pasted, pastingCell, and pastedCell events.

For example, when you copy a range from the grid below, it will add the column headers to the clipboard content.

Smart Pasting

Note that the FlexGrid implements an Excel-style 'smart pasting' feature that replicates the clipboard data when pasting. For example, if you select a single cell and press ctrl+c to copy it to the clipboard, then extend the selection and press ctrl+v to paste, the cell will be pasted over the entire selection.