I am adding parameter to my report in the design view and at the run time I am setting it's value code below:
paramList.Add(
new ReportParameter("ReportYear", "2003", false));
this.reportViewer1.ServerReport.SetParameters(paramList);
// Process and render the report
reportViewer1.RefreshReport();
Is the name of the parameter should match the name of the column in datatable?
Because, I don't see any results from the parameter settings it's still showing original data without any filtering applied to it.
Is there anything in the report designer I may have to change?
paramList.Add(
new ReportParameter("ReportYear", "2003", false));
this.reportViewer1.ServerReport.SetParameters(paramList);
// Process and render the report
reportViewer1.RefreshReport();
Is the name of the parameter should match the name of the column in datatable?
Because, I don't see any results from the parameter settings it's still showing original data without any filtering applied to it.
Is there anything in the report designer I may have to change?