Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
Dim tempString As String = Me.DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value.ToString
Me.TextEdit1.Text = tempString
End Sub