473,386 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to develop database applications faster?

I started developing in C#. Is there any elegant solution for automatic
generating of forms based on the structure of the tables in (MSSQL) database
(database schema), and after that only making minor changes in generated
code for specific things.

Take for example some simple desktop (windows) database app with 30-50
tables. Most forms for entering data are similar and have some form of
DataGridView with buttons for Insert/Update/Delete/Sort/Filter/Print/...
Forms for Insert/Update have many fields and some buttons like OK and
Cancel.

Generating every new form from zero with form designer and drag and drop is
very hard. Even the old xBase tools had frameworks for automatic generating
of code for all forms (even the complex ones) with the need for only small
changes after. What I want to say is that using the form designer at all is
the step back.

How you people do this, make every new form from zero or have some kind of
automatism.

Petar
Jun 27 '08 #1
3 1673
"Petar Djetlic" <pe***********@gmail.comwrote:
I started developing in C#. Is there any elegant solution for
automatic generating of forms based on the structure of the tables in
(MSSQL) database (database schema), and after that only making minor
changes in generated code for specific things. [...] Most forms for
entering data are similar and have some form of DataGridView with
buttons for Insert/Update/Delete/Sort/Filter/Print/...
Why not have *one* form with a DataGridView, and create new copies of it
bound to different tables?

Eq.
Jun 27 '08 #2
Petar,

You have at least two options, user controls and inherited forms.

http://msdn.microsoft.com/en-us/libr...ercontrol.aspx

Sorry I could not find a link to inherited form on MSDN, however it is in
the items from the project when you right click on that.

Cor
"Petar Djetlic" <pe***********@gmail.comschreef in bericht
news:g0**********@ss408.t-com.hr...
>I started developing in C#. Is there any elegant solution for automatic
generating of forms based on the structure of the tables in (MSSQL)
database (database schema), and after that only making minor changes in
generated code for specific things.

Take for example some simple desktop (windows) database app with 30-50
tables. Most forms for entering data are similar and have some form of
DataGridView with buttons for Insert/Update/Delete/Sort/Filter/Print/...
Forms for Insert/Update have many fields and some buttons like OK and
Cancel.

Generating every new form from zero with form designer and drag and drop
is very hard. Even the old xBase tools had frameworks for automatic
generating of code for all forms (even the complex ones) with the need for
only small changes after. What I want to say is that using the form
designer at all is the step back.

How you people do this, make every new form from zero or have some kind of
automatism.

Petar

Jun 27 '08 #3
//The site: filter ALWAYS works for me :-)
inherited form site:msdn2.microsoft.com
"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:A1**********************************@microsof t.com...
Petar,

You have at least two options, user controls and inherited forms.

http://msdn.microsoft.com/en-us/libr...ercontrol.aspx

Sorry I could not find a link to inherited form on MSDN, however it is in
the items from the project when you right click on that.

Cor
"Petar Djetlic" <pe***********@gmail.comschreef in bericht
news:g0**********@ss408.t-com.hr...
>>I started developing in C#. Is there any elegant solution for automatic
generating of forms based on the structure of the tables in (MSSQL)
database (database schema), and after that only making minor changes in
generated code for specific things.

Take for example some simple desktop (windows) database app with 30-50
tables. Most forms for entering data are similar and have some form of
DataGridView with buttons for Insert/Update/Delete/Sort/Filter/Print/...
Forms for Insert/Update have many fields and some buttons like OK and
Cancel.

Generating every new form from zero with form designer and drag and drop
is very hard. Even the old xBase tools had frameworks for automatic
generating of code for all forms (even the complex ones) with the need
for only small changes after. What I want to say is that using the form
designer at all is the step back.

How you people do this, make every new form from zero or have some kind
of automatism.

Petar

Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Ruby Tuesdays | last post by:
Perhaps you database guru able to suggest what would be a good choice for opensource database platform to use to develop projects. At the moment the project is small/medium, but it will grow in...
4
by: Jonathan Li | last post by:
I have posted the question before but nobody have given me a solution. I would like to rephrase my requirement and want to hear your advice. We are developing application packages for logistics...
10
by: Rada Chirkova | last post by:
Hi, at NC State University, my students and I are working on a project called "self-organizing databases," please see description below. I would like to use an open-source database system for...
11
by: Raghavendra Mudugal | last post by:
Hello Everybody, We are creating a new project on Virtual Private Networking (VPN), and it is decided to use VC++. I actually want to know that is can be achived by VC#.NET or not. You all know...
43
by: Rob R. Ainscough | last post by:
I realize I'm learning web development and there is a STEEP learning curve, but so far I've had to learn: HTML XML JavaScript ASP.NET using VB.NET ..NET Framework ADO.NET SSL
8
by: Inspector | last post by:
I'm hoping I might be able to pick someone's brain out there. Our company is currently running an inhouse application in which data is being stored in SQL. Included in this data are thousands...
0
by: vayalumkan | last post by:
Hi Sir, Can any body help me to develop a CMS (Content Management System) ? Using ASP.NET technology and C#. Database SQL Server 2005 It should enable me to easily publish, manage and...
0
by: vayalumkan | last post by:
Hi Sir, I want some technical help on how to develop(Implement) a Content Management System using ASP.NET and C#? Can any body help me to develop a CMS (Content Management System) ? ...
1
by: HDI | last post by:
Hi, I'm looking for the most user friendly way to develop a database program. Maybe some of you have got some nice experience and ideas that I can use. I always worked with sql statements te...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.