How to send more than one query in a reportDataSource.Value for reportviewer?


I have the following code as an example:

ReportDataSource reportDataSource = new ReportDataSource();
reportDataSource.Value = query;

I currently send a query to .rdlc in a table, but I would like to know how to send more than one query or an array or list. In the .rdlc, my goal is to list a table that shows certain numbers, and grouped by the number, show inside it another table that contains details of what I started to show.

I would like to know if there is any idea how to do it

asked by Danilo 26.09.2016 в 03:42

1 answer


You must create more reportDataSource , with name, and add them in reportViewer1.LocalReport.DataSources.Add(reportDataSource); the name of each source must be the same as it has in the report.

answered by 27.09.2016 в 22:24