2. STEP
• On grid view catch filtering descriptor as variable “filter”
• Then running binding search with data variable “filter”
• On data source report viewer bind data set that contain that binding filter
4. I CREATED SOME FUNCTION TO RETURN
FILTER BINDING DATASOURCE INTO
DATATABLE
private DataTable getData()
{
this.MyTableAdapter.Fill(this.MyDataSet.MyTable);
MyBindingSource.Filter = FilterExpression;
DataView dv = MyBindingSource.List as DataView;
DataTable dt = new DataTable();
dt = dv.ToTable();
return dt;
}
5. THEN CONNECT INTO REPORT VIEWER
this.reportViewer1.LocalReport.DataSources.Add(new
Microsoft.Reporting.WinForms.ReportDataSource(“MyDataSet", getData()));
reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
this.reportViewer1.RefreshReport();