Click here to Skip to main content
15,905,616 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I want to populate treeview and datagrid from accounts table hierarchically using code behind not mvvm and call data using Entity Framework ,the table shown in the attachments


https://ibb.co/gMvSj8

What I have tried:

i don't know how can i do that
Posted
Updated 13-Jul-18 4:30am
v6

1 solution

Unfortunately your attached images are on a blocked URL by me, so I could not view. What you are looking for is a Recursive Query, there are plenty of examples on Google and elsewhere on the code to use in either raw SQL or EF
 
Share this answer
 
Comments
Ahmed Dabas 13-Jul-18 11:38am    
https://files.fm/u/cy7cpytf#/view/Accounts.png
Ahmed Dabas 13-Jul-18 11:39am    
https://www.google.com/search?q=accounts+tree&client=firefox-b&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiqwuiptJzcAhVEaVAKHWnDAwEQ_AUICigB&biw=1920&bih=943#imgrc=hrsYuTkkaqHMhM:

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