Does anyone actually use data binding in real life?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Satisfy my curiosity. Does anyone really use the data adapter wizard and
bound controls in real life?

I ask because I've been fighting with demos and walkthroughs for over a week
and whenever I move an inch away from one of these ridiculously contrived
demos to a real life situation, everything falls apart. I simply do not have
the time or patience to piece together the fragments I find in Help. Anyone
out there got a truely comprehensive demo?
 
Hello B. Chernick,

This has full source code to get you off and running. Good article.

http://www.akadia.com/services/dotnet_databinding.html

Most examples use databases, if you want a simple example of controls being bound by IList, I can provide that per your request.


Best of luck!
RBischoff , your C# ally

B> Satisfy my curiosity. Does anyone really use the data adapter wizard
B> and bound controls in real life?
B>
B> I ask because I've been fighting with demos and walkthroughs for over
B> a week and whenever I move an inch away from one of these
B> ridiculously contrived demos to a real life situation, everything
B> falls apart. I simply do not have the time or patience to piece
B> together the fragments I find in Help. Anyone out there got a
B> truely comprehensive demo?
B>
 
Thanks guys! It'll take some time to examine the Windowsforms examples but
as far as the Akadia example is concerned, it seems to be more of the same.

Let me elaborate. None of the examples I see seem to relate to the sort of
programming I do. My main concern at this time is to find a quick method for
mass producing single table, single record editing forms. In other words,
forms that either load a single record in the Load event or immediately setup
to add a record. (I have never ever written a form that moved through a
dataset with buttons on any job I have ever held. It doesn't seem natural.)
I must be missing some piece of the big picture because any deviation from a
walk through immediately causes problems

For example: I created the example as described in 'Walkthrough: Displaying
Data in a Windows Form Using a Parameterized Query' (in VS help).

I then added Add and Update buttons. The Add button calls AddNew. The
update buttons call EndCurrentEdit and then calls the Update command. I
added and bound controls for all the non-null fields in the authors table of
Pubs. I'm currently trying to figure out why adding a bound checkbox
apparently disables the AddNew. It's stuff like this you can't lookup in
Help.
 
Hi B,

I never databind controls to database infrastructure but rather databind to
collections, IList, etc. I then deal with updates to/from the real
datasource myself - this additional indirection works well for me since you
get superior control over what takes place.

Regards
Joubert
 
I suppose that would work too. I was trying binding as a way to minimize my
coding. (I was simply generating datasets through the application block and
updating individual records as necessary. Terribly time consuming.)
 
Back
Top