private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 9)
            {
                actualizarcompras a = new actualizarcompras();


                a.textBox9.Text = dataGridView1.CurrentRow.Cells[0].Value.ToString();
                a.textBox1.Text = dataGridView1.CurrentRow.Cells[1].Value.ToString();
                a.textBox2.Text = dataGridView1.CurrentRow.Cells[7].Value.ToString();
                a.textBox3.Text = dataGridView1.CurrentRow.Cells[2].Value.ToString();
                a.textBox4.Text = dataGridView1.CurrentRow.Cells[3].Value.ToString();
                a.textBox5.Text = dataGridView1.CurrentRow.Cells[4].Value.ToString();
                a.textBox6.Text = dataGridView1.CurrentRow.Cells[5].Value.ToString();
                a.textBox7.Text = dataGridView1.CurrentRow.Cells[6].Value.ToString();
                a.textBox8.Text = dataGridView1.CurrentRow.Cells[8].Value.ToString();

                a.Show();
            }
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            actualizarcompras a = new actualizarcompras();

            a.Show();
        }