Hello
i had a datagridview with data in it and i wanted to display the selected row in textboxes
here's the code i tried by i think its totaly wrong
Private Sub DataGridView_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
Dim i As Integer
i = DataGridView.CurrentRow.Index
txtWatchId.Text = DataGridView.Item(0, i).Value
txtWatchBrand.Text = DataGridView.Item(1, i).Value
txtWatchModel.Text = DataGridView.Item(2, i).Value
txtManufacturer.Text = DataGridView.Item(3, i).Value
End Sub
Please help