コード例 #1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            Frm_consultaConcepto concep = new Frm_consultaConcepto();

            concep.ShowDialog();

            if (concep.DialogResult == DialogResult.OK)
            {
                Txt_concepto.Text = concep.Dgv_consulta.Rows[concep.Dgv_consulta.CurrentRow.Index].
                                    Cells[0].Value.ToString();
            }
        }
コード例 #2
0
        private void Btn_consultar_Click(object sender, EventArgs e)
        {
            Frm_consultaConcepto concep = new Frm_consultaConcepto();

            concep.ShowDialog();

            if (concep.DialogResult == DialogResult.OK)
            {
                Txt_codigo.Text = concep.Dgv_consultaConcepto.Rows[concep.Dgv_consultaConcepto.CurrentRow.Index].
                                  Cells[0].Value.ToString();
                Txt_nombre.Text = concep.Dgv_consultaConcepto.Rows[concep.Dgv_consultaConcepto.CurrentRow.Index].
                                  Cells[1].Value.ToString();
                Txt_puesto.Text = concep.Dgv_consultaConcepto.Rows[concep.Dgv_consultaConcepto.CurrentRow.Index].
                                  Cells[2].Value.ToString();
                Cbo_estado.Text = concep.Dgv_consultaConcepto.Rows[concep.Dgv_consultaConcepto.CurrentRow.Index].
                                  Cells[3].Value.ToString();
            }
        }
コード例 #3
0
        private void Btn_consultar_Click(object sender, EventArgs e)
        {
            Frm_consultaConcepto concep = new Frm_consultaConcepto();

            concep.ShowDialog();

            if (concep.DialogResult == DialogResult.OK)
            {
                Txt_Cod.Text = concep.Dgv_consulta.Rows[concep.Dgv_consulta.CurrentRow.Index].
                               Cells[0].Value.ToString();
                txt_Nombre.Text = concep.Dgv_consulta.Rows[concep.Dgv_consulta.CurrentRow.Index].
                                  Cells[1].Value.ToString();
                txt_Descripcion.Text = concep.Dgv_consulta.Rows[concep.Dgv_consulta.CurrentRow.Index].
                                       Cells[2].Value.ToString();
                txt_Valor.Text = concep.Dgv_consulta.Rows[concep.Dgv_consulta.CurrentRow.Index].
                                 Cells[3].Value.ToString();
                txt_TipoOp.Text = concep.Dgv_consulta.Rows[concep.Dgv_consulta.CurrentRow.Index].
                                  Cells[4].Value.ToString();
            }
        }