private void SearchList() { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _listOperation = new ListOperation(); _reportBO = new Bill_Sys_ReportBO(); try { DataSet objDT = new DataSet(); if ((((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_LOCATION == "1")) { DataTable objDTL = new DataTable(); objDT = _reportBO.GetPatientVisitSummary("SP_PATIENT_VISIT_SUMMARY_REPORT", txtCompanyID.Text); objDTL = DisplayLocationInGrid(objDT); grdCaseMaster.DataSource = objDTL; grdCaseMaster.DataBind(); for (int i = 0; i < grdCaseMaster.Items.Count; i++) { string str = grdCaseMaster.Items[i].Cells[2].Text.ToString(); str = str.ToString().Trim(); if (str.ToString().Trim() == " ") { ((CheckBox)grdCaseMaster.Items[i].Cells[0].FindControl("chkSelect")).Visible = false; } } } else { _listOperation.WebPage = this.Page; _listOperation.Xml_File = "SearchCase.xml"; _listOperation.LoadList(); } } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }