Solved

Databinding: Good idea?

Posted on 2004-08-13
3
179 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
Comment Utility
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:
mnasman earned 40 total points
Comment Utility
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
Comment Utility
I've done some more reading on it, and I'm going to go with binding.  
Thanks.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 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

10 Experts available now in Live!

Get 1:1 Help Now