Hello
I have a data grid, I want to move between the overlays by pressing the up and down arrow keys, and the data grid information will be displayed in the text box.
I did this now in the Cellclick event, but I want to do it in KeyUp and keyDown as well, but when I do this and move, it displays a previous record between the records.
This is the code I wrote in CellClick:
And how can I go to the desired record with the arrow keys and select it by pressing the enter key?
Thank you for your guidance
I have a data grid, I want to move between the overlays by pressing the up and down arrow keys, and the data grid information will be displayed in the text box.
I did this now in the Cellclick event, but I want to do it in KeyUp and keyDown as well, but when I do this and move, it displays a previous record between the records.
This is the code I wrote in CellClick:
VB.NET:
txtWeight.Text = DataGridView2.CurrentRow.Cells(0).Value.ToString
cmbConsignmentType.Text = DataGridView2.CurrentRow.Cells(1).Value.ToString
And how can I go to the desired record with the arrow keys and select it by pressing the enter key?
Thank you for your guidance