private void FillData(DataTable dt) { PIKCV.BUS.UserCVs objUserEducation = new PIKCV.BUS.UserCVs(); DataTable dtUserEducation = objUserEducation.GetUserEducationList(this.smUserID, PIKCV.COM.EnumDB.EducationStates.Graduate, PIKCV.COM.EnumDB.LanguageID.Turkish, false); pnlNoRecord.Visible = (dtUserEducation.Rows.Count < 1); pnlEducationList.Visible = !pnlNoRecord.Visible; rptEducationList.DataSource = dtUserEducation; rptEducationList.DataBind(); foreach (DataRow dr in dtUserEducation.Rows) { if (((PIKCV.COM.EnumDB.EducationTypes)(Convert.ToInt32(dr["EducationLevelID"]))) == PIKCV.COM.EnumDB.EducationTypes.MiddleSchool) { hlAddMiddleSchool.Visible = false; } else if (((PIKCV.COM.EnumDB.EducationTypes)(Convert.ToInt32(dr["EducationLevelID"]))) == PIKCV.COM.EnumDB.EducationTypes.HighSchool) { hlAddHighSchool.Visible = false; } } }