private void PopulateData() { List <MEducationDTO> lstMEducationDTO = new List <MEducationDTO>(); lstMEducationDTO = objITransactionBusiness.GetMEducation(); if (lstMEducationDTO != null && lstMEducationDTO.Count > 0) { ListView1.DataSource = lstMEducationDTO; ListView1.DataBind(); } else { ListView1.Items.Clear(); ListView1.DataSource = null; ListView1.DataBind(); } }