Click here to Skip to main content
15,922,407 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi everyone, i'm Olivier from France and I'm new to the Code Project.

I search a solution to copy/paste one or multiple cell(s) from a datagridview1 (selected with a left mouse click) to a datagridview2 placed on the same form using a right mouse click opening a 'copy/paste' menu.

Hope i'm clear :)

Thanks to the community !

What I have tried:

I've found a solution but for C# and have problems to change the code to VB
Updated 20-Apr-23 4:45am
Richard Deeming 17-Apr-23 10:22am    
Questions asking for someone to hand you ready-made code will not be answered - nobody here is going to do your work for you.

You say already have code in C#, and you're struggling to convert it to VB.NET; so show us what you have in C#, what you have tried in VB.NET, and explain precisely where you are stuck and what problems you are having.

Click the green "Improve question" link to edit your question and add the missing details.
[no name] 17-Apr-23 13:07pm    
"Copy and paste" is implemented by you "copying" the selected items (in "multi select" mode) to the other grid; having established whether you should insert, append or replace.

1 solution

A quick Google Search turned up many answers and YouTube videos that will help answer this question with code examples: winform datagridview copy cells from one to another - Google Search[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900