Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
Generally, with treeviews, we build the tree manually by iterating through the business object(s) containing the data for the node. We put the primary key or a NodeInfo structure (that contains the pk and a node type flag) in the Tag of each node that we place in the tree. Then, we handle the AfterSelect event of the treeview and depending upon the node type flag in the structure in the tag, we process more information, like show a panel on the right that contains detailed information about the node. As for editing in place, you will need to set the LabelEdit property to True and handle the BeforeLabelEdit (optional) and the AfterLabelEdit event to seek to the record in the business object and change the value.
|