how to pass two parameter to reportviewer by the following method.
ADMSDataSetTableAdapters.pwl_detailsTableAdapter adapter = new ADMSDataSetTableAdapters.pwl_detailsTableAdapter();
ADMSDataSet.pwl_detailsDataTable table = new ADMSDataSet.pwl_detailsDataTable();
adapter.FillByCity(table,textbox1.text);
ReportDataSource MyNewDataSouce = new ReportDataSource("Warehouse_DataSet", (DataTable)table);
this.reportViewer1.LocalReport.DataSources.Clear();
this.reportViewer1.LocalReport.DataSources.Add(MyNewDataSouce);
this.reportViewer1.LocalReport.Refresh();
this.reportViewer1.RefreshReport();
plz, Anyone Can help me
How to pass two parameter to reportviewer in C# usingwinform
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Jignesh TrivediRank #16 · 50.3K reputationPosted Jun 16, 2013, 7:18 PM EDT
hi,
Try following code to add parameter to report viewer.
ReportParameter p1 = new ReportParameter("@Name", "value");
this.reportViewer1.LocalReport.SetParameters(new ReportParameter[] { p1 });
hope this will help you.