使用sql CTE查询绑定treeView. [英] Bind treeView using sql CTE query.

查看:64
本文介绍了使用sql CTE查询绑定treeView.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我想使用SQL CTE查询在c#中绑定树视图. sql的查询在此链接上给出.请任何人告诉我此查询如何用于绑定C#中的treeview.

http://blog.crowe.co.nz/blog/archive/2007/09/06/Microsoft-SQL-Server-2005---CTE-Example-of-a-simple.aspx

在此先感谢

Hello friends,

I want to bind tree view in c# using SQL CTE query. the query of sql is given on this link. please any can tell me how this query used to bind treeview in c#.

http://blog.crowe.co.nz/blog/archive/2007/09/06/Microsoft-SQL-Server-2005---CTE-Example-of-a-simple.aspx

thanks in advance

推荐答案

请检查此链接:

http://stackoverflow.com/questions/2572721/recursive-treeview-in-asp-net [ ^ ]

我也遇到同样的问题.我从这里解决了.

请使用
Please check this link:

http://stackoverflow.com/questions/2572721/recursive-treeview-in-asp-net[^]

I got the same problem too. I solved it from here.

Please use
private void BindTree(IEnumerable<MyObject> list, TreeNode parentNode)



以上方法.希望您能解决这个问题.



the above method. Hopefully you can solve this one.


C#中的数据绑定TreeView [ ^ ]来自CP和简单-家庭-树查询 [
Data Binding TreeView in C#[^]article from CP and simple-family-tree-query[^] will give you an idea.


这篇关于使用sql CTE查询绑定treeView.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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