WPF 中的树形网格/分层网格
我如何在 WPF 中使用分层网格,如下所示
有没有办法使用这种类型网格通过它我们可以显示分层数据。 请讨论或给我任何可以下载示例代码源的网址,这有助于我使用分层网格。
How could I work with hierarchical Grid in WPF like below one
Is there any way to work with this type of grid through which we can show hierarchical data.
please discuss or give me any url from where I can download the source of sample code which help me to work with hierarchical grid.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我已经看到过类似的问题,答案包含此链接。
ListView 与 DataGrid 稍有不同,因为它没有编辑和排序功能。但你的图片中的排序并不明显,所以我认为在这种情况下两个控件之间没有区别。
I've already seen a similar question and the answer contained this link.
ListView is a little more different than DataGrid, because it doesn't have editing and sorting functionality. But the sorting isn't plain in your picture, so I think that there is no difference between two controls in this case.
尝试一下:带有列的仅 xaml 树视图
https://dlaa.me/blog/post/9898803< /a>
Try this out: A xaml only treeview with columns
https://dlaa.me/blog/post/9898803
我今天遇到了对象列表视图,看起来相当不错。但似乎不是过滤和虚拟化。
I came across Object List View today, and it seems quite good. Doesn't seem to be a filtering and virtualization though.
Xceed Datagrid for WPf 内置了此功能,并且示例非常丰富。
http://xceed.com/Grid_WPF_Intro.html
查看在线演示。
The Xceed Datagrid for WPf has this functionality built in and the samples are extensive.
http://xceed.com/Grid_WPF_Intro.html
Have a look at the online demo.
Xceed DataGrid 提供了此功能,并且提供了开源版本。它被称为蓝图。您将收到该组件的源代码。
The Xceed DataGrid offers this functionality and does offer the open source version. Its called Blueprint. You will receive the source code for the component.