private void dataGridView2_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { TEAM t = new TEAM(); t.textBox1.Text = dataGridView2.CurrentRow.Cells[0].Value.ToString(); t.textBox2.Text = dataGridView2.CurrentRow.Cells[1].Value.ToString(); t.comboBox1.Text = dataGridView2.CurrentRow.Cells[2].Value.ToString(); t.textBox3.Text = dataGridView2.CurrentRow.Cells[3].Value.ToString(); t.ShowDialog(); }
private void dataGridView2_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { TEAM t = new TEAM(); t.Show(); }