How do you bind a control property to the property of a child object of a parent object and enable bi-directional synchronous object-control binding?
Client Address Address2
txtPhysAdd2.DataBindings.Add("Text", _Client.Physical, "Address2");
This line of code compiles just fine but does nothing because the property changed event is never fired as it is null...
All controls bound to properties of the parent _Client object fire and update just fine using the standard EventHandler callback using the conventional (property name)Changed event naming syntax...
The children of the main object will not play...
CW
http://www.code-magazine.com/article.aspx?quickid=0603011&page=1
Hi Carson,
Even if this was working, the binding can't create an instance for _Client.Physical automatically when the user puts something in the control.
I think you'd better use a BindingSource who is capable of inserting, but you might need to create an instance yourself (not sure).