我有 1 个DataGridView
,我想将所有记录转移到另一个DataGridView
. 我怎么可能做到这一点?
dgvCourseList - 1st datagridview
dgvCourseHandled - 2nd datagridview
这是我将一条记录转移到另一条记录的代码DataGridView
:
Private Sub btnInsert_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnInsert.Click
If (chckCourse(dgvCourselist.SelectedCells.Item(0).Value)) = True And (chckDup(dgvCourselist.SelectedCells.Item(0).Value)) = False Then
dgvCoursesHandled.Rows.Add(dgvCourselist.SelectedCells.Item(0).Value)
End If
End Sub