Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VB.net Dynamic Windows Form that adapts to SQL Table changes

Posted on 2013-05-31
2
Medium Priority
?
272 Views
Last Modified: 2013-06-01
Hi

I would like to try to build a dynamic Windows form that loads controls for any
SQL table and adapts to changes made to the tables. Has anyone ever tried or asked this sort
of question before?
0
Comment
Question by:Murray Brown
[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 Comments
 
LVL 14

Accepted Solution

by:
Alexander Eßer [Alex140181] earned 2000 total points
ID: 39210083
What kind of controls?! I guess some sort of grid for the tables, right?! What exactly do you mean with
adapts to changes made to the tables

Basically, this shouldn't be too difficult at all.
My "mind list" would be something like this:
- first get all relevant SQL tables by iterating over the "system tables" to get the info
- then take the components of your choice (e.g. datasetzs or whatever) and dynamically add them to your main window (e.g. through reflection if neccessary/suitable)
- using data binding on e.g. DataChanged (-> DataSource) and your window forms/controls should keep the data up to date
0
 

Author Closing Comment

by:Murray Brown
ID: 39212522
Thanks for the advice
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

730 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