For A As Integer = 0 To DataGridView1.Rows.Count - 1
For B As Integer = 0 To DataGridView2.Rows.Count - 2
If DataGridView1.Rows(A).Cells(0).Value = DataGridView2.Rows(B).Cells(0).Value Then
DataGridView2.Rows(A).Cells(1).Value = DataGridView1.Rows(B).Cells(1).Value
End If
Next
Next
Tag : .NET, Ms SQL Server 2014, Win (Windows App), VB.NET, Windows