Articles in this section
Category / Section

How to copy selected text from WPF GridControl to clipboard (notepad or any other external sources)?

2 mins read

WPF GridControl provides support for clipboard operations. You can cut or copy and paste data to or from grid to other external sources, like notepad, excel, etc.

You can change the copy paste operations in gridcontrol by setting the flaggable enum CopyPasteOption property. You can enable copy and paste by setting CopyPasteOption property to CopyText and PasteText.

gridControl.Model.Options.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell;
grid.Model.Options.CopyPasteOption = CopyPaste.CopyText | CopyPaste.PasteText;

 

Copy the text from grid to notepad

Sample: View sample in GitHub

See also

GridControl Editing

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied