Private Sub DataGridView1_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
Dim dgv As DataGridViewRow = DataGridView1.Rows(e.RowIndex)
TextBox1.Text = dgv.Cells(0).Value.ToString
TextBox2.Text = dgv.Cells(1).Value.ToString
DateTimePicker1.Text = dgv.Cells(2).Value.ToString
TextBox3.Text = dgv.Cells(3).Value.ToString
End Sub
Select one of the following: