Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jayraj ChhayaRank #304 · 8.2K reputationPosted Dec 12, 2023, 10:32 PM EST
To add a dropdown list to a Windows application using C# and RDLC, you can follow these steps:
Now, let's move on to adding the dropdown list to the Windows application form:
To pass the selected value from the dropdown list to the RDLC report, you need to modify the code that generates the report:
Here's an example of how you can set the report parameter value:
ReportParameter parameter = new ReportParameter("ParameterName", comboBox1.SelectedValue.ToString()); this.reportViewer1.LocalReport.SetParameters(parameter);Make sure to replace "ParameterName" with the actual name of the report parameter and "comboBox1" with the name of your ComboBox control.