Click here to Skip to main content
16,019,618 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using wpf treeview control in MVVM concept which has dataset as a datacontext and using hierarichal data templates to display data in tree view.

Now problem is sometimes, i want to set the selected item of a treeview.
means as i am using dataset, so i need to set Datarow view as a selected item of a treeview.

Please help me out in MVVM model how can i do it


<treeview name="contentTreeView" grid.row="1" datacontext="{Binding TreeDS, Mode=TwoWay}" itemssource="{Binding CustomerMaster}" itemtemplate="{StaticResource CustomerTemplate}" selecteditemchanged="contentTreeView_SelectedItemChanged">
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900