i am using VS2022.net
How can I display datagridview values in textboxes?
Move by keyboard arrows
thanks in advance
here is my code
Private Sub DataGridView1_CellStateChanged(sender As Object, e As DataGridViewCellStateChangedEventArgs) Handles DataGridView1.CellStateChanged
TxtBook.Text = DataGridView1.CurrentRow.Cells(1).Value
TxtAuthor.Text = DataGridView1.CurrentRow.Cells(2).Value
TxtPublisher.Text = DataGridView1.CurrentRow.Cells(3).Value
TxtPublish.Text = DataGridView1.CurrentRow.Cells(4).Value
txtPage.Text = DataGridView1.CurrentRow.Cells(5).Value
TxtNote.Text = DataGridView1.CurrentRow.Cells(6).Value
End Sub