Answered by:

how to copy and paste selected rows from one datagridview to another form's datagridview in vb 2010?

Question

I have two datagridview in separate forms calld datagridview1 and
datagridview2, i want select rows in datagridview1 and then clicking a bottun in form1, it should show form2 and past selected rows of datagridview1 into datagridview2 and then i save data from datagridview2 to the databse.

Answers

Kevin made the following VS2010 Solution in VB.NET, it has two projects, one for allowing a user to select rows in a DataGridView via checking a CheckBox cell then pressing CTRL+V to set the selected rows to the Windows Clipboard comma delimited. The
second project accepts this data or Excel data by selecting cells, pressing CTRL+C.

All replies

It seems to me that you want people in this forum make programs for you.

First try it yourself, create your program with 2 datagridviews which are filled from a database and tell then what problems you have.

Be aware we help people to become a programmer, or professional programmers if something is not clear for them, we are not stealing the food out of the mouth from those persons who earn a living with programming.

Kevin made the following VS2010 Solution in VB.NET, it has two projects, one for allowing a user to select rows in a DataGridView via checking a CheckBox cell then pressing CTRL+V to set the selected rows to the Windows Clipboard comma delimited. The
second project accepts this data or Excel data by selecting cells, pressing CTRL+C.