Hello,
I have a ReportViewer1 with a RDLC that only contains a Table attached. The table shows information gatheted from an SQL Table. I get all the products with 'state' 5 but I only want to show the products that are included in a Listbox control or a List<string>.
1) An option could be passing an SQL parameter to the Fill method of the adapter. However, I don't know how to achieve it. For instance, if the SELECT command look like this "SELECT * FROM dbo.Product where state = 5 and ProductName = @Name. This only allows me to pass a Product Name but not a list. I could pass a String builder as @Name with a lot of "AND" but I dont know if this is possible.
2) I don't know if it's possible to pass a list to the report and then set the report for only showing the products included in the list.
Suggestions or any information about binding reports will be appreciated.
Many thanks!