private void button2_Click(object sender, EventArgs e)
        {
            ConsultCarrera concep = new ConsultCarrera();

            concep.ShowDialog();

            if (concep.DialogResult == DialogResult.OK)
            {
                Txt_2.Text = concep.Dgv_consulta2.Rows[concep.Dgv_consulta2.CurrentRow.Index].
                             Cells[0].Value.ToString();
            }
        }
Пример #2
0
        private void Btn_consultar_Click(object sender, EventArgs e)
        {
            ConsultCarrera concep = new ConsultCarrera();

            concep.ShowDialog();

            if (concep.DialogResult == DialogResult.OK)
            {
                Txt_1.Text = concep.Dgv_consulta2.Rows[concep.Dgv_consulta2.CurrentRow.Index].
                             Cells[0].Value.ToString();
                Txt_2.Text = concep.Dgv_consulta2.Rows[concep.Dgv_consulta2.CurrentRow.Index].
                             Cells[1].Value.ToString();
                Txt_3.Text = concep.Dgv_consulta2.Rows[concep.Dgv_consulta2.CurrentRow.Index].
                             Cells[2].Value.ToString();
                Cbo_estado.Text = concep.Dgv_consulta2.Rows[concep.Dgv_consulta2.CurrentRow.Index].
                                  Cells[3].Value.ToString();
            }
        }