Datagridview - Copy row

2 Answers 11 Views
GridView
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Radek asked on 08 Aug 2025, 09:23 AM

Hi,

in datagridview I have set AllowRowReorder to True and works well.

But I want to copy row (not move) when I hold Ctrl key, it is possible?

2 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 11 Aug 2025, 12:21 PM

Hello Radek,

Currently, the AllowRowReorder functionality in RadGridView only supports moving rows, not copying them with a modifier key like Ctrl. You could try to achieve this using custom code. May I ask you to share more details when exactly the copy operation needs to be executed. You can share the steps so that I can think of a possible solution.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Radek
Top achievements
Rank 2
Iron
Iron
Iron
answered on 11 Aug 2025, 12:28 PM

Hello,

I have a grid (not binding) with some row with operation, some operation is almost same only with few differencet (for example: number of pieces etc), for user is much easier to copy row instead of enter a new operation in the form.

Dinko | Tech Support Engineer
Telerik team
commented on 12 Aug 2025, 11:41 AM

I am still not sure what your requirement is. In general, you can set the SelectionMode property to FullRowSelect. Then, when the user uses Ctrl+C, they can copy the selected row with its cells inside. 

In a case, you want to allow the user to copy more than one row. You can allow the multiselection by setting the MultiSelect property to true:

this.radGridView1.SelectionMode = GridViewSelectionMode.FullRowSelect;
this.radGridView1.MultiSelect = true;

This way the user can select multiple rows and using the Ctrl+C can copy the cells in that rows.

Tags
GridView
Asked by
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or