or
/// <summary>/// Updates the report./// </summary>public void UpdateReport(){ AcceptanceProtocol.AcceptanceProtocol report = this.ReportViewer1.Report as AcceptanceProtocol.AcceptanceProtocol; report.SetFilters(companyId, userId, deviceId, cultureName); this.ReportViewer1.Visible = true; this.ReportViewer1.RefreshReport();}/// <summary>/// Handles the NeedDataSource event of the AcceptanceProtocol control./// </summary>/// <param name="sender">The source of the event.</param>/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>private void AcceptanceProtocol_NeedDataSource(object sender, EventArgs e){ Telerik.Reporting.Processing.Report rep = (Telerik.Reporting.Processing.Report)sender; this.DataSource = this.BusinessLogic.GetAcceptanceProtocol( this.CompanyId, this.UserId, this.DeviceId, this.CultureName, this.EventTypeIdFilter, this.EventTypeGroupIdFilter); rep.DataSource = this.DataSource;}