It's possible to implement pasting multiple rows from clipboard to GridControl with the following approach:
- Detect Ctrl+V key combination in the GridControl.ProcessGridKey;
- Add the row data to GridControl if the corresponding row exists.
Note: the GridControl supports the "copying to clipboard" feature out of the box. See the GridView.CopyToClipboard method. To enable copying multiple row/cells, set the GridView.OptionsSelection.MultiSelect to true and GridView.OptionsSelection.MultiSelectMode to CellSelect.
See Also:
- How to implement the Copy/Paste feature
- How to copy selected rows to the clipboard
Question Comments
Added By: Geovany Kelly at: 6/18/2014 4:43:12 PM
question, The gridView must be empty? without Columns?