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
Solved

.NET windows form with dynamic input controls for report

Posted on 2014-01-21
4
498 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
  • 2
  • 2
4 Comments
 
LVL 29

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 29

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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem with SelectList in .NET MVC application 1 26
JSON Deserialize issue 6 26
Where is this file? 3 25
Please explain purpose of GZIP 4 34
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

792 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