Solved

Databinding: Good idea?

Posted on 2004-08-13
3
181 Views
Last Modified: 2010-04-15

I've had a lot of experience with Data binding with VB6.  One hard lesson I learned from it is that it can save a lot of development time in the beginning, but as soon as you need to do something outside of its expected use (example: try allowing the user to select the database to use - the ADODC control connects to the design time db before allowing you to change the connection string) you get totally screwed.

I'm starting a new project with C# and I'm wondering if similar limitations exist.  One major difference is the visibility of design-time objects that can be edited at run-time, so that's good.  But I'm too new to C# to know if any problems lurk.  I was wondering what the C# community thought about databinding?  Is it safer to assign values to controls (ie: text box) manually?

g
0
Comment
Question by:gdbjohnson
3 Comments
 
LVL 8

Assisted Solution

by:trevorhartman
trevorhartman earned 35 total points
ID: 11796918
I am a fan of databinding, but I know what you mean by doing something outside of its expected use.  I have found C# to be very accomidating in this area and allows creative solutions to these type of problems.  So yes I think databind is a good idea.

-Trevor
0
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 40 total points
ID: 11797721
DataBinding  in .net is much better than what was in vb6, it's more flexible and will save many time for you

also you can add binding at runtime and remove it, so you have many options if you use it, better than writing more code if you go without the databinding
0
 
LVL 2

Author Comment

by:gdbjohnson
ID: 11804612
I've done some more reading on it, and I'm going to go with binding.  
Thanks.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now