/* * Seleccionar registro. */ private void seleccionarRegistro(object sender, DataGridViewCellEventArgs e) { int fila = Dgv_Consulta.CurrentCell.RowIndex; String codigoConfig = Dgv_Consulta.Rows[fila].Cells[0].Value.ToString(); this.configuracionRpt = configuracionRptControl.obtenerConfiguracionRpt(Int32.Parse(codigoConfig)); llenarTbpDato(this.configuracionRpt); Tbc_Configuracion.SelectedTab = Tbp_Datos; }
private void llenarTbpDato(Reporte reporte) { deshabilitarCampos(); Txt_Codigo.Text = reporte.REPORTE.ToString(); Txt_Nombre.Text = reporte.NOMBRE; // Cmb_Configuracion.SelectedItem = Cmb_Configuracion.Items[reporte.CONFIGURACION.CONFIGURACION]; ConfiguracionRptControl confControl = new ConfiguracionRptControl(); ConfiguracionRpt conf = confControl.obtenerConfiguracionRpt(reporte.CONFIGURACION.CONFIGURACION); Cmb_Configuracion.Text = conf.NOMBRE; Cmb_Configuracion.SelectedText = Cmb_Configuracion.Text; Txt_Archivo.Text = reporte.NOMBRE_ARCHIVO; Txt_Estado.Text = reporte.ESTADO.ToString(); }