473,396 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

DataBinding

I have tried using Databinding for my application but always seem to find it
very restrictive (maybe I don't completely understand it enough). I always
seem to find it much easier to display a form, have the user fill it out then
put the data into a class representing a data row and then use the OLEadaptor
or OLECommands to update the database.

My question is has anyone really used databinding in anything but the
simpliest application that will be used for commercial purposes?

--
Dennis in Houston
Nov 21 '05 #1
9 2073
On 2005-09-18, Dennis <De****@discussions.microsoft.com> wrote:
I have tried using Databinding for my application but always seem to find it
very restrictive (maybe I don't completely understand it enough).
First, I assume we're talking WinForms here...
I always
seem to find it much easier to display a form, have the user fill it out then
put the data into a class representing a data row and then use the OLEadaptor
or OLECommands to update the database.

My question is has anyone really used databinding in anything but the
simpliest application that will be used for commercial purposes?


I used it on a fairly serious vertical app once, and found that I had to
get under the hood of the databinding fairly often to get it to work
right. IMHO, DataBinding really wasn't worth the effort.

I still use it for internal tools where I don't mind the UI quirks and
just want to get something working quickly, but I wouldn't use it for a
commercial app. In my experience, rolling your own binding scheme
doesn't take any more code and it's a lot more flexible.

Nov 21 '05 #2
Dennis,

Using databinding is so simple. See this sample. Keep in mind one cavat
which is that pushing the data to a datarow will happens when there is a
rowchange. When there is a button or whatever event happening this is not
done. Therefore you need mostly the endcurrentedit, which force that
pushing.

http://www.windowsformsdatagridhelp....f-587f730fa118

Another point can be that you need to change the data if it is handled,
which needs binding events (by instance Null values from the database).

See for that this a little bit more complete sample of binding

http://www.windowsformsdatagridhelp....9-4deb7fa4a0b8

I hope this helps,

Cor
Nov 21 '05 #3
Thanks for tips Cor but have you ever really used data binding in a serious
commercial applicaton? See David's reply on this thread because I had the
same experience that he did.
--
Dennis in Houston
"Cor Ligthert [MVP]" wrote:
Dennis,

Using databinding is so simple. See this sample. Keep in mind one cavat
which is that pushing the data to a datarow will happens when there is a
rowchange. When there is a button or whatever event happening this is not
done. Therefore you need mostly the endcurrentedit, which force that
pushing.

http://www.windowsformsdatagridhelp....f-587f730fa118

Another point can be that you need to change the data if it is handled,
which needs binding events (by instance Null values from the database).

See for that this a little bit more complete sample of binding

http://www.windowsformsdatagridhelp....9-4deb7fa4a0b8

I hope this helps,

Cor

Nov 21 '05 #4
Thanks for reply David. I'm glad that someone else has had similiar
experiences with DataBinding. I was beginning to think that I was too stupid
to see the "Light" in using Data Binding.
--
Dennis in Houston
"david" wrote:
On 2005-09-18, Dennis <De****@discussions.microsoft.com> wrote:
I have tried using Databinding for my application but always seem to find it
very restrictive (maybe I don't completely understand it enough).


First, I assume we're talking WinForms here...
I always
seem to find it much easier to display a form, have the user fill it out then
put the data into a class representing a data row and then use the OLEadaptor
or OLECommands to update the database.

My question is has anyone really used databinding in anything but the
simpliest application that will be used for commercial purposes?


I used it on a fairly serious vertical app once, and found that I had to
get under the hood of the databinding fairly often to get it to work
right. IMHO, DataBinding really wasn't worth the effort.

I still use it for internal tools where I don't mind the UI quirks and
just want to get something working quickly, but I wouldn't use it for a
commercial app. In my experience, rolling your own binding scheme
doesn't take any more code and it's a lot more flexible.

Nov 21 '05 #5
Dennis,
Thanks for tips Cor but have you ever really used data binding in a
serious
commercial applicaton? See David's reply on this thread because I had the
same experience that he did.
--


I really dont't see what it matters if a application is sold 10000000000
times to a commercial market or is used by only one person inside a company
for simple use.

This approach from you and David sounds for me the same as those who are
telling that they have heard from their collegues that directly accessing
databases give errors.

Therefore they do still sequential access in a merging way of databases as
where it punching cards, because their collegue had the same.

The really problem is in those cases mostly is that people are not anymore
able to adept newer methods and stay with their olds.

Just my thought

Cor
Nov 21 '05 #6
If I understand your comments correctly, you have only used Data Binding for
simple use by a few people in a company and not for commercial distribution!
It does make a difference when someone is forced to use the internal company
progams versus them using their free will to spend their personal $$$ to
purchase or not purchase an application.
--
Dennis in Houston
"Cor Ligthert [MVP]" wrote:
Dennis,
Thanks for tips Cor but have you ever really used data binding in a
serious
commercial applicaton? See David's reply on this thread because I had the
same experience that he did.
--


I really dont't see what it matters if a application is sold 10000000000
times to a commercial market or is used by only one person inside a company
for simple use.

This approach from you and David sounds for me the same as those who are
telling that they have heard from their collegues that directly accessing
databases give errors.

Therefore they do still sequential access in a merging way of databases as
where it punching cards, because their collegue had the same.

The really problem is in those cases mostly is that people are not anymore
able to adept newer methods and stay with their olds.

Just my thought

Cor

Nov 21 '05 #7
> If I understand your comments correctly, you have only used Data Binding
for
simple use by a few people in a company and not for commercial
distribution!
It does make a difference when someone is forced to use the internal
company
progams versus them using their free will to spend their personal $$$ to
purchase or not purchase an application.
--


I really don't see the connection in what you want to say.

Do you mean that you use your end-users for first raw testing by putting the
product not tested on a $$$ market.

The end-user should never see if a program is made by whatever tool or
method. A normal user cannot see if in a Microsoft product binding is used.
A product from what you are an end-user, and you say now that you will not
buy it as binding is used.

The end-user should only see the result, which has to be good and bug free
and therefore appending to the product better tested.

By an in house program you can use the end-user for testing. Although you
will see that the (bad)results of that comes back to you. For an not in
house project for a single company you use your own testing team plus an
end-user testing team. For the market you add to that if it is possible a
user-group.

However the tool with and how you made it, is something they should never
see.

Just my thought,

Cor
Nov 21 '05 #8
On 2005-09-20, Cor Ligthert [MVP] <no************@planet.nl> wrote:
Dennis,
Thanks for tips Cor but have you ever really used data binding in a
serious
commercial applicaton? See David's reply on this thread because I had the
same experience that he did.
--
I really dont't see what it matters if a application is sold
10000000000 times to a commercial market or is used by only one person
inside a company for simple use.


I'm sorry, but that's just an ignorant thing to say. Would you really
put together a large team of experienced UI designers to design an
interface for a simple app for one person?

This approach from you and David sounds for me the same as those who
are telling that they have heard from their collegues that directly
accessing databases give errors.
Unfortunately, what sounds for you seems to have the exact opposite
meaning of what's actually been written. Neither of us is stating
anything based on what we've heard from colleagues. We've used the
technology, for me at least in an app of fairly decent size, and found
that the it wasn't worth the effort.

In order to achieve a commercial quality responsive UI, one winds up
adding so much code to basic databinding that the databinding itself
becomes fairly worthless.

Again, I like databinding, and it's certainly simple and quick to use.
But the UI it creates by default is not particularly user-friendly,
although it is certainly useful for utility apps where UI support is not
a significant cost.
Therefore they do still sequential access in a merging way of
databases as where it punching cards, because their collegue had the
same.

The really problem is in those cases mostly is that people are not
anymore able to adept newer methods and stay with their olds.


Would you have said the same thing about VB6 data binding? Was it
avoided only because people could not adapt newer methods? Can
you accept the fact that it's at least *possible* that a newer
technology is not the best solution in certain situations?
Nov 21 '05 #9
Cor, you are missing my point which is that I have found it to be very
difficult and time consuming to develop an application's UI using data
binding that is user friendly to someone who spends $$$ to buy it.

You say that not using data binding is "sticking to the old ways". If the
old ways are better, then I'll stidk to them.
--
Dennis in Houston
"david" wrote:
On 2005-09-20, Cor Ligthert [MVP] <no************@planet.nl> wrote:
Dennis,
Thanks for tips Cor but have you ever really used data binding in a
serious
commercial applicaton? See David's reply on this thread because I had the
same experience that he did.
--


I really dont't see what it matters if a application is sold
10000000000 times to a commercial market or is used by only one person
inside a company for simple use.


I'm sorry, but that's just an ignorant thing to say. Would you really
put together a large team of experienced UI designers to design an
interface for a simple app for one person?

This approach from you and David sounds for me the same as those who
are telling that they have heard from their collegues that directly
accessing databases give errors.


Unfortunately, what sounds for you seems to have the exact opposite
meaning of what's actually been written. Neither of us is stating
anything based on what we've heard from colleagues. We've used the
technology, for me at least in an app of fairly decent size, and found
that the it wasn't worth the effort.

In order to achieve a commercial quality responsive UI, one winds up
adding so much code to basic databinding that the databinding itself
becomes fairly worthless.

Again, I like databinding, and it's certainly simple and quick to use.
But the UI it creates by default is not particularly user-friendly,
although it is certainly useful for utility apps where UI support is not
a significant cost.
Therefore they do still sequential access in a merging way of
databases as where it punching cards, because their collegue had the
same.

The really problem is in those cases mostly is that people are not
anymore able to adept newer methods and stay with their olds.


Would you have said the same thing about VB6 data binding? Was it
avoided only because people could not adapt newer methods? Can
you accept the fact that it's at least *possible* that a newer
technology is not the best solution in certain situations?

Nov 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kevin Swanson | last post by:
I'm writing what should be a very simple app against an Oracle database. The app has a number of user controls, any one of which is loaded into a main display page using the loadControl method,...
3
by: John Bailey | last post by:
When I first built a few web pages in ASP .Net 2.0, I thought it was great. The formview and detailview contorls would automatically layout the controls for you, the update methods were...
4
by: Nathan Sokalski | last post by:
I have two databinding expressions (the first & last names from a DB) that I want to assign to the text property of a Label so that the result is LASTNAME,FIRSTNAME. At the moment, I have the...
8
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
0
by: Wayne Sepega | last post by:
I have the following Object DataSource <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetCustomer" TypeName="Customers" DataObjectTypeName="Customer"...
9
by: J055 | last post by:
Hi I have a very simple configuration of the GridView with paging and sorting. When I do a postback the DataBinding event fires twice - in both the ProcessPostData and PreRender stages of the...
1
by: CorporateCoder | last post by:
Hi, I am trying to bind the selected value of a databound dropdown box in a databound gridview control to the value being displayed in the template column the dropdown box has been added to. ...
8
by: Dirk | last post by:
Hello, I have a problem to use databinding with my business layer classes. My data class does not have simple properties (string, int or datetime), instead, all my properties are objects of the...
1
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello to all, I want to know if DataBinding in asp.net 2,0 is better than to fill up the values of the controls of the following form: this.miControlTextBox.Text = valorParaControlTextbox; ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.