This is a migrated thread and some comments may be shown as answers.

GetContainersFromItem

1 Answer 34 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
IxReveal
Top achievements
Rank 1
IxReveal asked on 28 Jan 2011, 09:05 PM
The MS base container controls like TreeList have a helpful method called GetContainersFromItem which can be used to get the UI container e.g treeViewItem using the object reference bound to the container:
we use it like :

 

 

IEnumerable<TreeViewItem> parentTreeViewItems = this.ConceptBankTreeView.GetContainersFromItem(parentConcept);
is there an equivilant method in for the TreeListItem

 

1 Answer, 1 is accepted

Sort by
0
IxReveal
Top achievements
Rank 1
answered on 29 Jan 2011, 11:06 PM
I found the answer:

SelectedTreeListRow = some.ItemContainerGenerator.ContainerFromItem(selectedConcepts[0])

 

as TreeListViewRow;

 

Tags
TreeListView
Asked by
IxReveal
Top achievements
Rank 1
Answers by
IxReveal
Top achievements
Rank 1
Share this question
or