RDLC report parameters c#

Posted on 2011-03-09
Last Modified: 2013-11-27
One more question in continuation...What if the parameter value is not chosen in front end ..Then I want all values in dropdown to be passed...I guess the filter should be IN..and there should be  a check in frontend that if no value  is chosen--all the values in dropdown will be concatenated and passed.. Is this the way to do it or is there any otherway...
Question by:rishaan
  • 3
  • 3

Accepted Solution

puffdaddy411 earned 125 total points
ID: 35095856
Sounds like you are using a combo box on a form to select filters for your report, correct?  So if nothing is selected the table should display all records, correct?

What you need to do then is make your parameter a "MultiValue" parameter.  There is a checkbox on the parameter dialog box of your report.  Then you can pass a string array to the parameter.  Change your "=" to "IN" in your table filter.  This should work for a single value or multiple (all) values.  Just pass a string() array to the parameter with all of your desired values (or one).

Use this in your filter value.


Author Comment

ID: 35096515
Thanks  again..for correct understanding and perfect answer.
Since you are report specialist I wanted to ask you ..I wanted to create a MS-Access like strong filter functionality on the form and then generate reports accordingly.. What would ur suggestion be to proceed with it ? Or Has this kind of work already done by some one already..

Expert Comment

ID: 35096560
Do you have a picture of an example or a bit more detail of what you are doing?  Perhaps an example of the MS Access functionality you need?
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.


Author Comment

ID: 35099318
If u have a MS Access table open and it has the filter functionality on each column whcih cahnges data dynamically or in Excel where filters can be applied to column headers and they filter whole sheet on each selection....

Expert Comment

ID: 35099579
Ah I see.  Well you can't build this functionality into the local report itself.  Once the report is rendered, it is in its final state.  You can enable interactive sorting on columns to reorder them but that's about it.  If I needed to do this, I might use comboboxes on the form for each column and refresh the report on the combobox.SelectedIndexChanged event.  Or select the values of each combo box and refresh the form on a button click.  Again, you can't change the report once it's rendered, but you can manipulate the back-end data and refresh the report as much as you need.

Author Closing Comment

ID: 35109008

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now