Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to implement the paste from clipboard feature

$
0
0

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?


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>