Ejemplo n.º 1
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            FormOrder myForm = new FormOrder();

            myForm.textORDERNO.Text     = dataGridView1.CurrentRow.Cells[0].Value.ToString();
            myForm.dateTimePicker1.Text = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            myForm.comboSTATUS.Text     = dataGridView1.CurrentRow.Cells[2].Value.ToString();
            myForm.textDID.Text         = dataGridView1.CurrentRow.Cells[3].Value.ToString();
            myForm.textDNAME.Text       = dataGridView1.CurrentRow.Cells[4].Value.ToString();

            myForm.ShowDialog();
        }
Ejemplo n.º 2
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            FormOrder myForm = new FormOrder();

            myForm.textPCODE.Text     = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            myForm.PNAME.Text         = dataGridView1.CurrentRow.Cells[2].Value.ToString();
            myForm.weightC1.Text      = dataGridView1.CurrentRow.Cells[3].Value.ToString();
            myForm.textUPRICE.Text    = dataGridView1.CurrentRow.Cells[4].Value.ToString();
            myForm.textAPACKETS.Text  = dataGridView1.CurrentRow.Cells[5].Value.ToString();
            myForm.textCARTONS.Text   = dataGridView1.CurrentRow.Cells[6].Value.ToString();
            myForm.textTPACKESTS.Text = dataGridView1.CurrentRow.Cells[7].Value.ToString();
            myForm.textTAMOUNT.Text   = dataGridView1.CurrentRow.Cells[8].Value.ToString();

            myForm.ShowDialog();
        }