private void Datos_Org_ENCABEZADO() { DB_AP_Registro_Org d_org = new DB_AP_Registro_Org(); DataTable dt = new DataTable(); dt = d_org.DB_Desplegar_ENCABEZADO_ORG(Convert.ToInt32(LblIdInsOrg.Text)); LblOrg.Text = dt.Rows[0][2].ToString(); LblIdCamp.Text = dt.Rows[0][5].ToString(); LblCamp.Text = dt.Rows[0][6].ToString(); LblProg.Text = dt.Rows[0][9].ToString(); LblIdReg.Text = dt.Rows[0][7].ToString(); LblReg.Text = dt.Rows[0][8].ToString(); Cargar_NUM_SEGUIMIENTOS(); DB_EXT_Fenologia Luis = new DB_EXT_Fenologia(); //LblNumSeg.Text = (Luis.DB_MaxNumSeg(Convert.ToInt32(LblIdInsOrg.Text))).ToString(); LblNumSeg.Text = DDLNumSeg.SelectedValue; dt = Luis.DB_Seleccionar_NUMPROD_TOTSUP_ORG(Convert.ToInt32(LblIdInsOrg.Text)); if (dt.Rows.Count > 0) { TxtNumBenefVig.Text = dt.Rows[0][0].ToString(); TxtSupAct.Text = dt.Rows[0][1].ToString(); TxtSupApo.Text = dt.Rows[0][2].ToString(); } }