Tree View Binding Woes (Cross Post)

Tree View Binding Woes (Cross Post)

Old forum URL: forums.lhotka.net/forums/t/2103.aspx


maurera posted on Tuesday, January 09, 2007

I apologize in advance for “cross posting”, but we are having a problem binding a BO to a Tree View and, due to the time critical nature of the project, I wanted to create a post here for maximum visibility.  The original post is here:

 

http://forums.lhotka.net/forums/thread/10960.aspx

Brian Criswell replied on Tuesday, January 09, 2007

See my post in the other thread.  The WinForms TreeView is not databindable.  I have found the best solution to be to inherity TreeNode for each type of BO that needs to be displayed.  The inherited TreeNodes know what events on the object to handle and what behaviour to exhibit, what child nodes to show, etc.  Unfortunately, I will probably be out of contact until Sunday.

Copyright (c) Marimer LLC