I'm trying to add data from one row of a DataGridView from one form to another by clicking on a "confirm button", but from searches I've done in other similar cases, the code is correct. Even so, I have no code return.
I'm doing the following:
Form2.TextBox1.Text = DataGridView1.CurrentRow.Cells(0).Value.ToString()
The data should appear in the text box of the other form when I click a button. What is wrong? The return I have is "nothing". It does not make any errors, but it does not work either.