ZAIN ULARIFEEN

ZAIN ULARIFEEN

  • 1.6k
  • 143
  • 150.1k

How to pass two parameter to reportviewer in C# usingwinform

Jun 14 2013 3:24 PM
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

Answers (1)