Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
Dim i As Integer
i = DataGridView1.CurrentRow.Index
Me.textbox1.Text = DataGridView1.Item(0, i).Value.ToString()
Me.Textbox2.Text = DataGridView1.Item(1, i).Value.ToString()
Me.textbox3.Text = DataGridView1.Item(2, i).Value.ToString()
End Sub
Nguồn: Sharecode.vn