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