I'm trying to send the data from a gridview
in a second Form
to a combobox
in form
master but I have not been successful. I would like to know if there is a way to do this without being sent as a parameter, since I will call the form
master at other times without needing this value.
Here is the try code:
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
Form1 f = new Form1();
f.cbComputador.SelectedIndex = Convert.ToInt32(dataGridView1.CurrentRow.Cells[1].Value);
this.Close();
}
I need the value to immediately appear on the% computer "%" when the user clicks twice.