/// <summary> /// Populates the data. /// </summary> private void PopulateData() { DataTable reports = theReports.GetReports(); gridResult.DataSource = reports; gridResult.DataBind(); }
/// <summary> /// Populates the data. /// </summary> private void PopulateData() { try { theReports = (IReportIQTools)ObjectFactory.CreateInstance("BusinessProcess.Reports.IQToolsReport, BusinessProcess.Reports"); DataTable reports = theReports.GetReports(); gridResult.DataSource = reports; gridResult.DataBind(); } catch (Exception exp) { MsgBuilder theBuilder = new MsgBuilder(); theBuilder.DataElements["MessageText"] = exp.Message.ToString(); IQCareMsgBox.Show("#C1", theBuilder, this); Response.Redirect("~/frmFacilityHome.aspx", true); } }