472,971 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,971 software developers and data experts.

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 1868
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Philip D Heady | last post by:
Ok, as some of you may know I'm an Oracle newbie w/ PHP. I'd rather use MySQL but at the office here we use Oracle and boy do I have alot to learn. I'm starting to hate it after using MySQL!! ...
0
by: Ann Morris | last post by:
INTRODUCTION One of the most powerful aspects of .NET and Windows Forms is data binding. Data binding is the process of associating user interface (UI) elements with a data source to generate a...
3
by: serge calderara | last post by:
Dear all, I ma collected data from a CSV file and build dataset based on those data. I would like to bind this dataset to a treeview control in order that nodes gets displayed automatically...
16
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
12
by: Nhmiller | last post by:
When I start to type the data for a new record, I would like a dropdown box to open next to it from which I can choose the data from a previously entered record that starts with the same letter....
6
by: Mike Kirkpatrick | last post by:
I have this data grid which consists of 3 pick lists. The first pick list is to affect the data binding of the other two. I have figured out how to do the data binding by column. However, I do not...
14
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control...
9
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New...
8
by: tkjensen | last post by:
How to make a own dataview in c#? Can someone please help me? I want to get id and users and everything else from database to be showed in the same place at the same time just as DataView. Please...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.