如何在ASP.NET和C#中的网格中显示树结构? [英] How to show tree structure in a grid in ASP.NET and C#?
问题描述
我需要显示与树的每一行关联的树状结构,如下图所示.每当我点击该行的+按钮时,该特定行都会出现一些选项.
I need to show a tree like structure associated with each row of grid like below picture. Whenever I click on + button of the row, some options should appear for that particular row.
谷歌搜索很多,但是没有找到任何满足我要求的东西.
Googled a lot but did not find anything fulfilling my requirement.
如果您以前这样做,请分享您的知识.
Please share your knowledge if you have done like this before.
推荐答案
我获得了以下链接,这些链接对于创建网格或将网格划分为网格或可扩展网格非常有用.
I got following links very useful for creating hierarchy of grids or grid into grid or expandable grids.
Telerik:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx
DevEx
http://demos.devexpress.com/ASPxGridViewDemos/MasterDetail/DetailTabs.aspx
代码项目(在Nag的帮助下)
Codeproject (with the help of Nag)
http://www.codeproject.com/Articles/160773/Expandable-Rows-in-GridView
这篇关于如何在ASP.NET和C#中的网格中显示树结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!