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

How to copy whole row to clipboard

1 Answer 316 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Joe Sugden
Top achievements
Rank 1
Joe Sugden asked on 13 Dec 2010, 08:08 PM
Hello,

We need the ability to copy a whole row from the grid to the clipboard, so it can be pasted in Excel let's say.
Looks like the built in copy functionality only copies a single cell and it can be pasted back in the grid only.

Any code samples anyone?

Thanks!

UPDATE:

The closest thing that I found and does it is:

http://www.telerik.com/support/kb/winforms/gridview/copy-pasting-rows-in-and-between-radgridviews-csv-format.aspx

I implemented a variation of that but was wondering if there wasn't something built in by now...

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 14 Dec 2010, 12:44 AM
Hi Joe,

No, there is nothing built in at this stage. the two links to look at are
http://www.telerik.com/support/kb/winforms/gridview/implementing-copy-paste-to-excel-functionality-in-radgridview-for-winforms.aspx
http://www.telerik.com/support/kb/winforms/gridview/copy-pasting-rows-in-and-between-radgridviews-csv-format.aspx

Whilst the articles are old, the principal should be the same.

Hope that helps
Richard
Tags
GridView
Asked by
Joe Sugden
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or