Click here to Skip to main content
16,022,737 members

Comments by parfilko (Top 1 by date)

parfilko 6-Sep-12 12:01pm View    
unfortunately, your example just repeat functionality of standard BindingSource component.
If form has 50 controls it will need to add to many user code. With a BindingSource component there will be NO user code at all.
I prefer use standard BindingSource designed by microsoft, rather than custom code.

As I mentioned, BindingSource component works perfect while I use TextBox.Text property - it synchronize data two way and update source only when Text property is really changed by control or by programmer code.

MSDN show how to create own binding property (on user control):
http://msdn.microsoft.com/en-us/library/ms171926.aspx
When I did that, it's works BUT UPDATES DATASOURCE EVERYTIME, even control does not change the data. This is unexpected behavior. Or Bug?