Private Sub dgv_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgv1.CellContentClick Dim drExisting As DataRow Try dgv2.DataSource = New DataView(ds.Tables(0)) dgv2.DataSource = Nothing If (dgv.SelectedRows.Count > 0) = True Then 'Create new row to hold duplicated values Dim NewRow As DataGridViewRow = dgv.SelectedRows 'Add newly create row to table Me.dgv2.Rows.Add(NewRow) End If Catch ex As Exception Call ShowError(ex) End Try End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)