在树视图的GridView [英] TreeView in GridView
问题描述
我知道一定有办法做到这一点,也许有人已经做到了。我GOOGLE了像疯了似的,但发现什么都没有。不管怎样,我想要做的是有使用WPF在GridView的第一列一个TreeView,它可以展开和折叠,这将显示/隐藏它属于该行,pretty太多这样的事情(演示是对于ASP.NET,我希望能够做同样在WPF):
I know there must be a way to do this, and perhaps someone has already done it. I googled like crazy but found nothing at all. Anyway, what I want to do is have a TreeView in the first column of a GridView using WPF, which can expand and collapse and that will show/hide the row it belongs to, pretty much something like this (the demo is for ASP.NET, I want to be able to do the same in WPF):
在我们公司,我们买了Infragistics的控制,但它并没有内置的解决方案,我们正在努力避免花费大量的时间编码此解决方案。
In our company we bought Infragistics controls, but it doesn't have a built in solution, we're trying to avoid spending a lot of time coding this solution.
感谢您!
推荐答案
也许你没有使用正确的搜索字词...海事组织,你实际上要找的是不是里面一个TreeView的GridView,但而带有列树视图。
Perhaps you're not using the right search terms... IMO, what you're actually looking for is not a GridView with a TreeView inside it, but rather a TreeView with columns.
下面是一个使用列(通常称为的TreeList或TreeListView)的TreeView的一些样品:
Here are a some samples of TreeViews with columns (often called TreeList or TreeListView) :
- HTTP://www.$c$cproject.com/KB/ WPF / wpf_treelistview_control.aspx
- http://blogs.msdn.com/atc_avalon_team/存档/ 2006/03/01 / 541206.aspx
- http://www.codeproject.com/KB/WPF/wpf_treelistview_control.aspx
- http://blogs.msdn.com/atc_avalon_team/archive/2006/03/01/541206.aspx
这篇关于在树视图的GridView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!