Please, read comments in code block:
Dim row As DataGridViewRow = Me.DGV_Trans.CurrentRow
If row is Nothing Then Return
TransIDTextBox.Text = row.Cells(1).Value.ToString()
CheckBox1.Checked = row.Cells(2).Value
SymbolTextBox.Text = row.Cells(3).Value.ToString()
QuantityTextBox.Text = row.Cells(4).Value.ToString()
PriceTextBox.Text = row.Cells(5).Value.ToString()
DTP1.Value = row.Cells(6).Value
TxtFee.Text = row.Cells(7).Value.ToString()
TxtVat.Text = row.Cells(8).Value.ToString()
As
0x01AA has already stated, column index starts with 0 (zero)! So, correct above code accordingly!
For further details, please see:
DataGridView.Columns Property (System.Windows.Forms) | Microsoft Docs[
^]
How to: Return a Value from a Procedure - Visual Basic | Microsoft Docs[
^]