This is a migrated thread and some comments may be shown as answers.

Clipboard is empty when application has been closed

1 Answer 44 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Uli
Top achievements
Rank 1
Uli asked on 14 Oct 2010, 11:27 AM
Hi everybody,

if I copy data of the RadGridView into the clipboard I can paste it into an Excel sheet only as long as the source application (e.g. the demo application but also my own application) is running. Is there a way to keep the data in the clipboard after closing the application?

Regards Uli

1 Answer, 1 is accepted

Sort by
0
Accepted
Yavor Georgiev
Telerik team
answered on 14 Oct 2010, 11:36 AM
Hello Uli,

 By default the system clears all the data from the application to reclaim memory and maximize performance. If you'd like to keep the data in the clipboard even after your application closes, you need to handle the Copied event in the following way:
var data = Clipboard.GetDataObject();
Clipboard.SetDataObject(data, true);

Regards,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Uli
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Share this question
or