如何填充分层树视图或数据网格 [英] How can I populate hierarchical treeview or datagrid

查看:81
本文介绍了如何填充分层树视图或数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用不在mvvm后面的代码分层填充来自accounts表的treeview和datagrid,并使用Entity Framework调用数据,附件中显示的表





https://ibb.co/gMvSj8



我尝试了什么:



i不知道我该怎么做

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

推荐答案

不幸的是,我的附件图片在一个被阻止的URL上,所以我无法查看。您正在寻找的是递归查询,Google和其他地方有很多关于在原始SQL或EF中使用的代码的示例
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


这篇关于如何填充分层树视图或数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆