private void PopulateData() { List <SubCenterDTO> lstSubCenterDTO = new List <SubCenterDTO>(); lstSubCenterDTO = objITransactionBusiness.GetSubCenter(PHCConstant.PHCID); if (lstSubCenterDTO != null && lstSubCenterDTO.Count > 0) { ListView1.DataSource = lstSubCenterDTO; ListView1.DataBind(); } else { ListView1.Items.Clear(); ListView1.DataSource = null; ListView1.DataBind(); } }