I use the following code to generate a data table from datagridview
Dim t1 As New DataTable
For Each col As DataGridViewColumn In DataGridView1.Columns
t1.Columns.Add(col.HeaderText)
Next
For Each row As DataGridViewRow In DataGridView1.Rows
Dim dRow1 As DataRow = t1.NewRow
For Each cell As DataGridViewCell In row.Cells
dRow1(cell.ColumnIndex) = cell.Value
Next
Next
Now the question is how do i load this datatable to another datagridview ?
if you change or add rows in one datagrid it changed in other one. or if you change in code and add rows you see the changes on datagrids.
Update1:
if you want to get data from datagrid1 and show only that data in datagrid2 use :