Treeview and Csla
Old forum URL: forums.lhotka.net/forums/t/3411.aspx
dantes1 posted on Tuesday, August 21, 2007
hi id like to ask if its possible to make a treeview with BO as datasource...
BO is a readonly list or editable list... and their children are alos lists...
i created one but i dont know how to make the BO child as child node or treeview...
josh.kodroff replied on Tuesday, August 28, 2007
As far as I know, TreeViews are not bindable. However, what you can do is create the nodes by looping through the collection and each item's children, and set the Text property to some relevant property (myNode.Text = myBO.Name for example), then set the Tag property to the BO itself.
tiago replied on Saturday, September 15, 2007
You have a code example here
Copyright (c) Marimer LLC