This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi- Regarding the multi-column treeview, the SelectedItem property is read only. I would like to be able to select tree items programmmatically after adding or deleting items to the bound data lists. Is there any way to do this? Thanks. |
|
|
Yes, this is a limitation of the WPF TreeView.SelectedItem property (and we follow its interface because our MulticolumnTreeView *is* a WPF TreeView). I guess the justification is that the SelectedItem might not be a member of the Items collection (because it might be further down in the tree), but it seems bizarre to me. The way to get around it is: TreeViewItem tvi = myTree.ItemContainerGenerator.ContainerFromItem(SelectedItem) as TreeViewItem; |
|