.NET windows form with dynamic input controls for report
Posted on 2014-01-21
I would like to show some controls based on the input parameter for a report. Based on the selected report in UI the controls should be rendered accordingly. Say for example, 'Report Employee Session report' takes 4 parameters EmpID with combo box, Name with text box and FromDate and ToDate as date picker values. If above report is selected, the 4 controls should be shown in UI along with submit button.
Likewise, based on the report parameter the UI should load the controls dynamically.
How to achieve this?
Please note that I'm using .NET windows application.