private void BindLVPHCTransDetails() { List <PHCTransactionDTO> lstphctran = objITransactionBusiness.GetPHCTransactionDetails(PHCConstant.PHCID); if (lstphctran != null && lstphctran.Count > 0) { LVPHCTransDetails.DataSource = lstphctran; LVPHCTransDetails.DataBind(); lblbalanceamount.Text = objITransactionBusiness.CalculateBalanceAmount(PHCConstant.PHCID); } else { LVPHCTransDetails.Items.Clear(); LVPHCTransDetails.DataSource = null; LVPHCTransDetails.DataBind(); pnlstatus.BackColor = System.Drawing.ColorTranslator.FromHtml(PHCConstant.WarningBackGroundColor); lblstatus.ForeColor = System.Drawing.ColorTranslator.FromHtml(PHCConstant.WarningForeColor); lblstatus.Text = PHCConstant.PHCTransactionWarning; btnSave.Enabled = false; } }