private void button1_Click(object sender, EventArgs e) { int i; i = dataGridView2.SelectedCells[0].RowIndex; textBox10.Text = dataGridView1.Rows[i].Cells[1].Value.ToString(); textBox11.Text = dataGridView1.Rows[i].Cells[2].Value.ToString(); textBox12.Text = dataGridView1.Rows[i].Cells[3].Value.ToString(); textBox13.Text = dataGridView1.Rows[i].Cells[4].Value.ToString(); textBox14.Text = dataGridView1.Rows[i].Cells[5].Value.ToString(); textBox15.Text = dataGridView1.Rows[i].Cells[6].Value.ToString(); textBox16.Text = dataGridView1.Rows[i].Cells[7].Value.ToString(); textBox17.Text = dataGridView1.Rows[i].Cells[8].Value.ToString(); textBox18.Text = dataGridView1.Rows[i].Cells[9].Value.ToString(); textBox19.Text = dataGridView1.Rows[i].Cells[10].Value.ToString(); textBox20.Text = dataGridView1.Rows[i].Cells[11].Value.ToString(); textBox21.Text = dataGridView1.Rows[i].Cells[12].Value.ToString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)