468,133 Members | 1,152 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,133 developers. It's quick & easy.

Is Data Binding a Bad Choice ??????????

I am a VB6 intermediate programmer just starting out using VB.net and would
like to ask what I'd be missing out on if I just use time saving techniques
like data binding, data adapter wizards etc to create my front end
application. Building the data access forms using manual coding just seems
like a lot of work.... Any guidance would be appreciated

Fares
Nov 20 '05 #1
10 1645
Cor
Hi Fares,

Have for databinding first a look to "Datasource", that does the most work
for you.

And for the more general part of your question:

Probably you will start with using the wizards, they are nice but after a
while, you will see that they somethings do things, that you do not want and
start more and more doing things by hand.

And strange is that it becomes less work, especialy because you probably
will build your own classes which do the job for you.

I hope this helps?

Cor
I am a VB6 intermediate programmer just starting out using VB.net and would like to ask what I'd be missing out on if I just use time saving techniques like data binding, data adapter wizards etc to create my front end
application. Building the data access forms using manual coding just seems
like a lot of work.... Any guidance would be appreciated

Nov 20 '05 #2
* "Fares Eidi" <fa***@agricola.gr> scripsit:
I am a VB6 intermediate programmer just starting out using VB.net and would
like to ask what I'd be missing out on if I just use time saving techniques
like data binding, data adapter wizards etc to create my front end
application. Building the data access forms using manual coding just seems
like a lot of work.... Any guidance would be appreciated


Why not use this technique (data binding)? It was introduced to make
work easier, so why not use it when it's useful?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
Cor
Hi Herfried,

Databinding leads people mostly in the wrong direction for a simple start.
I would use the datasource instead.

Databinding looks at first sight very complex and is only needed for
controls which have no datasource as textbox, labels, listview etc.

By instance with the combobox, datagrid, listbox is the datasource the way
to go first.

Just my thought

Cor
Nov 20 '05 #4
Thanks for your thoughts ...

I guess I never did fully appreciate the true reason why (advanced) VB6
programmers avoided binding for a C/S application running for a small
workgroup.
I mean the whole debate was that binding is not as scalable or resource
efficient wasn't it?

Fares

"Cor" <no*@non.com> wrote in message
news:Oe**************@tk2msftngp13.phx.gbl...
Hi Herfried,

Databinding leads people mostly in the wrong direction for a simple start.
I would use the datasource instead.

Databinding looks at first sight very complex and is only needed for
controls which have no datasource as textbox, labels, listview etc.

By instance with the combobox, datagrid, listbox is the datasource the way
to go first.

Just my thought

Cor

Nov 20 '05 #5
Cor,
How are you considering the "Datasource" to be different then data binding?

I consider the Datasource property to be one form of Data binding.

Can you explain where you are heading with this?

Thanks
Jay

"Cor" <no*@non.com> wrote in message
news:Oz*************@tk2msftngp13.phx.gbl...
Hi Fares,

Have for databinding first a look to "Datasource", that does the most work
for you.

And for the more general part of your question:

Probably you will start with using the wizards, they are nice but after a
while, you will see that they somethings do things, that you do not want and start more and more doing things by hand.

And strange is that it becomes less work, especialy because you probably
will build your own classes which do the job for you.

I hope this helps?

Cor
I am a VB6 intermediate programmer just starting out using VB.net and

would
like to ask what I'd be missing out on if I just use time saving

techniques
like data binding, data adapter wizards etc to create my front end
application. Building the data access forms using manual coding just seems like a lot of work.... Any guidance would be appreciated


Nov 20 '05 #6
Fares,
In addition to the other comments.

Databinding in .NET is very powerful, easy to use, and efficient. I would
recommend using it if you can. Remember that data binding in .NET supports
binding to both ADO.NET and your own domain objects.

David Sceppa's book "Microsoft ADO.NET - Core Reference" from MS press is
both a good tutorial on ADO.NET & a good desk reference for later. It has a
couple of chapters on data binding to ADO.NET.

Rockford Lhotka's book "Expert One-On-One Visual Basic .NET Business
Objects" from A! Press, provides a framework for data binding to your own
domain (business) objects.
http://www.lhotka.net

Hope this helps
Jay

"Fares Eidi" <fa***@agricola.gr> wrote in message
news:uS**************@TK2MSFTNGP11.phx.gbl...
I am a VB6 intermediate programmer just starting out using VB.net and would like to ask what I'd be missing out on if I just use time saving techniques like data binding, data adapter wizards etc to create my front end
application. Building the data access forms using manual coding just seems
like a lot of work.... Any guidance would be appreciated

Fares

Nov 20 '05 #7
Cor
Hi Jay,
How are you considering the "Datasource" to be different then data binding? I consider the Datasource property to be one form of Data binding.


Of course

But I recognized that people are looking for databinding and not for
datasource, that is the only reason that I write that in this kind of
questions.

Databinding looks often so difficult in the beginning and adding a
datasource is so simple.

Cor

Nov 20 '05 #8
Cor
Hi Fares,

When you have used it and get it full it is very easy to use, but some
things like "format" (remember that word as a keyword) can be very difficult
to understand in the beginning.

To try it,
Just make a combobox and an extra textbox.
Connect a datatable to the datasource from the combobox and bind the textbox
to the same datatable.

If it is difficult tell it (not now direct) because that sample is easy to
give.

Cor
Nov 20 '05 #9
Cor,
That's what I was hoping you were going to say! ;-)

Jay

"Cor" <no*@non.com> wrote in message
news:eV**************@tk2msftngp13.phx.gbl...
Hi Jay,
How are you considering the "Datasource" to be different then data

binding?
I consider the Datasource property to be one form of Data binding.


Of course

But I recognized that people are looking for databinding and not for
datasource, that is the only reason that I write that in this kind of
questions.

Databinding looks often so difficult in the beginning and adding a
datasource is so simple.

Cor

Nov 20 '05 #10
My Two cents,

Yeah, databinding in VB6 was kinda ugly/cumbersome, I never used it because
of things like Cor mentioned (formatting). However, databinding with
ADO.NET (which is SO much more powerful than ADO 2.5+.) is acceptable. I
think the reason I enjoy using it so much is I can add formatting of course,
data doesn't have to go back and forth to the datasource all the time (I can
have an ADO Recordset (vb6 terms)) without actually having a datatable to go
to. You could do this in VB6, but again, cumbersome.

So, if you can understand ADO.NET, you will see how much easier development
is. Really helps separate out your datalogic from your presentation logic.
You'll become a better coder because of it (maybe this is reaching, but it
sure helped me, especially understanding the differences from vb6/.net).
Jay's books that were recommended are excellent, even though I havent read
the second one (but think I will... New Borders Books is in town... I'm
such a nerd.)

good luck...

"Fares Eidi" <fa***@agricola.gr> wrote in message
news:uS**************@TK2MSFTNGP11.phx.gbl...
I am a VB6 intermediate programmer just starting out using VB.net and would like to ask what I'd be missing out on if I just use time saving techniques like data binding, data adapter wizards etc to create my front end
application. Building the data access forms using manual coding just seems
like a lot of work.... Any guidance would be appreciated

Fares

Nov 20 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Philip D Heady | last post: by
3 posts views Thread by serge calderara | last post: by
16 posts views Thread by D Witherspoon | last post: by
12 posts views Thread by Nhmiller | last post: by
6 posts views Thread by Mike Kirkpatrick | last post: by
9 posts views Thread by Anil Gupte | last post: by
8 posts views Thread by tkjensen | last post: by
27 posts views Thread by didacticone | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.