this.reportViewer.RefreshReport(); } private class Data { public string Name { get; set; } public string RptValue { get; set; } } public string strReport { get; set; } private void cboReports_SelectedIndexChanged(object sender, EventArgs e) { BindingList<Data> _comboItems = new BindingList<Data>(); _comboItems.Add(new Data { Name = "Select", RptValue = "Select a report" }); _comboItems.Add(new Data { Name = "CJ01_DateRange", RptValue = "CJ01_DateRange.rdlc" }); cboReports.DataSource = _comboItems; cboReports.DisplayMember = "Name"; cboReports.ValueMember = "RptValue"; strReport = "ReportViewer." + cboReports.SelectedValue; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)