Databinding

  • Thread starter Thread starter Henry
  • Start date Start date
H

Henry

Hi

I am new to ADO.NET and would like to know which method is better, using the
databinding feature of window forms controls or simply using code?
 
Hi Henry,

I prefer binding. It saves you a lot of typing and if you are aware of
functionality, it just works.
I suggest you to try with a pilot project with binding and see if it works
for you.
 
Thanks for the quick reply. I will be following your advise. The reason why
I asked the questuon below was due to the high number of errors I received
developing data forms. I've been writing database applications since the
release of DAO 2.0 and "classic" ADO. The concept in .NET is quite diffrent
and the error messages are useless, not to mention the poor documentation i
found under the VS help. I've purchased few books but they do not include
error messages. I created a windows forms, was able to create datasets and
bind fields to text boxes. I can edit and delete rows but so far have not
been successful in adding a new row. I wish there was a list of those errors
and what they mean. The old ADO did work for me but i know it's no longer a
choice. Thanks for you help.





Miha Markic said:
Hi Henry,

I prefer binding. It saves you a lot of typing and if you are aware of
functionality, it just works.
I suggest you to try with a pilot project with binding and see if it works
for you.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

Henry said:
Hi

I am new to ADO.NET and would like to know which method is better, using the
databinding feature of window forms controls or simply using code?
 
Hi Henry,

Check out BindingManagerBase or its derived CurrencyManager.
It is the bridge between datasource and data consumers and among other
methods it provides AddNew method.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

Henry said:
Thanks for the quick reply. I will be following your advise. The reason why
I asked the questuon below was due to the high number of errors I received
developing data forms. I've been writing database applications since the
release of DAO 2.0 and "classic" ADO. The concept in .NET is quite diffrent
and the error messages are useless, not to mention the poor documentation i
found under the VS help. I've purchased few books but they do not include
error messages. I created a windows forms, was able to create datasets and
bind fields to text boxes. I can edit and delete rows but so far have not
been successful in adding a new row. I wish there was a list of those errors
and what they mean. The old ADO did work for me but i know it's no longer a
choice. Thanks for you help.





Miha Markic said:
Hi Henry,

I prefer binding. It saves you a lot of typing and if you are aware of
functionality, it just works.
I suggest you to try with a pilot project with binding and see if it works
for you.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

Henry said:
Hi

I am new to ADO.NET and would like to know which method is better,
using
the
databinding feature of window forms controls or simply using code?
 
Back
Top