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

How to copy a row and paste it into a new row added in a unbound RadGridView winform

1 Answer 738 Views
GridView
This is a migrated thread and some comments may be shown as answers.
fabrizio
Top achievements
Rank 1
Veteran
fabrizio asked on 11 Jul 2020, 09:40 AM
hello is it possible to copy a row and paste it into a new row added in a unbound RadGridView winform?
I am attaching a screenshot of the RadGridView
If it cannot be done with copy paste from keyboard or mouse, can it be done with programming?

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 13 Jul 2020, 11:14 AM
  

Hello, Fabrizio,

By default, RadGridView allows you to copy multiple rows data and paste them to the data rows. Note that one of the data rows should be current. However, RadGridView is not supposed to perform copy/paste operation inside the new row and insert new records this way.

However, you can easily achieve it by customizing the default paste action in the MasterGridViewTemplate.Paste method. You can refer to the following forum post demonstrating a sample approach: https://www.telerik.com/forums/paste-from-excel-in-to-add-new-row

We already have a similar feature request logged in our feedback portal. You can track its progress, subscribe for status changes and add your comments on the following link - https://feedback.telerik.com/winforms/1372364-add-radgridview-add-paste-operation-in-the-new-row

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Tags
GridView
Asked by
fabrizio
Top achievements
Rank 1
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or