There's a lot of information out there about data-binding UI objects
(i.e. derived from Control) to non-UI custom business objects. Is it
possible to do the same without any UI being involved at all?
Here's an example:
I want to do data binding on some of the properties of a TreeNode
(namely its Name). Unfortunately, TreeNode does not derive from
Control, so it doesn't have the "stock" data binding stuff. I'd like
to create a new class that derives from TreeNode that reimplments this
data binding stuff.
I tried to create a PropertyManager and simply add data bindings to it,
but unfortunately the PropertyManager's DataBindings collection is
read-only. Is there anyway to accomplish something like this?
Although this question is specifically about TreeNode, I guess I'm
wondering about the more general question: how do I go about adding a
binding manager to a custom business object to give it binding support
like controls have?