Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,


I need to select random checkboxes in a Tree view,which are
retrived from Database (SQL Server).

My project is windows based and using WPf.
Im using VB.net and sql server database.




Can anyone help on this issue ???

Thanks in advance

Regards

naveen...:~
Posted

1 solution

Hi,
For this you can either use a property in your entity,say IsSelected,and bind the checkbox's(in the datatemplate of the treeviewitem) IsChecked property to it.
Or get the datatemplate from the treeview item,which can be obtained using the ItemsContainerGenerator and set the IsChecked property.
See this link[^]

Hope it helps :-D
 
Share this answer
 

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