Solved

.NET windows form with dynamic input controls for report

Posted on 2014-01-21
4
503 Views
Last Modified: 2014-01-22
HI Expert,

  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.
0
Comment
Question by:Easwaran Paramasivam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 30

Assisted Solution

by:anarki_jimbel
anarki_jimbel earned 500 total points
ID: 39798575
It is not really too tricky to create controls on a fly and put them on a form. Much harder to know what controls you need at the moment. I'd probably go with some kind of "template", or list of controls (name, tag, type, sequence number etc.) for each specific report.

Check, what report you need --> select "template" --> according to a list generate controls and render them on a form --> copy required data to form controls.

Probably, it is possible to "read" your report data (reflection) and generate controls on a fly.

The task is pretty complex :).
0
 
LVL 16

Author Comment

by:Easwaran Paramasivam
ID: 39799343
Thanks. Could you please suggest some resources or documents related to your answer. So that I could refer for my implementation.
0
 
LVL 30

Accepted Solution

by:
anarki_jimbel earned 500 total points
ID: 39800873
0
 
LVL 16

Author Closing Comment

by:Easwaran Paramasivam
ID: 39800958
Excellent
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

734 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