VB.NET Fill Selected Value to a grid From Another Grid?

VB.NET Beginners - How to Adding Datagridview rows from one grid to another grid using Datagridview Rows Selected in VB.NET? this tutorials is about how to make datagridview with selected value will send to another datagridview using button in VB.NET windows form. Before doing this tutorial, we have been post about Insert data into datagridview vb net.

Read : How to Insert data from MySQL Database Into DataGridView
How to Make a Connections Using ODBC

Create New Project (Fill Selected Value to another grid)

Open our visual studio, and make new project with name "SelectedGrid", and please design our form1.vb just look like this images :

VB.NET Fill Selected Value to a grid From Another Grid?

Source Code Button1

Dim Dr As New DataGridViewRow
For Each Dr In DataGridView1.SelectedRows
DataGridView2.Rows.Add(Dr.Cells(0).Value, Dr.Cells(1).Value, Dr.Cells(2).Value, Dr.Cells(3).Value, Dr.Cells(4).Value)
' you can add more value
Next

Video tutorials