Solved

Databinding: Good idea?

Posted on 2004-08-13
3
180 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
A short film showing how OnPage and Connectwise integration works.

919 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