树栅控制所需的建议 [英] suggetion required for treegrid control

查看:51
本文介绍了树栅控制所需的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想以树的形式显示我的数据,并将每个节点的某些属性显示为该节点的列.类似于带有列的树.我尝试使用c1flexgrid,但是上移,下移,升级,降级,将节点添加到其他节点等操作并不像树状视图那样直接.因此有人可以建议我使用wpf中的哪些控件来满足我的要求.

谢谢与问候
Easwar.

Hi
I want to show my data in the form of Tree and some of properties of each node as columns of that node. something like tree with columns. i tried to use c1flexgrid, but the operations like move-up, move-down, promote, demote, adding nodes to other node etc are not straight like a tree-view. so can some one suggest me what control in wpf is available for my requirement.

Thanks & Regards
Easwar.

推荐答案

我不确定您要什么.我使用Infragistics XamDataGrid做过类似的事情,并且不得不做一些技巧来使列对齐.您可以尝试使用WPF DataGrid,并在第一列(带有分隔符,按钮和第一文本的列)中,根据级别在扩展按钮之前添加一些空间.可见性可以由IsVisible属性控制,如果不是IsVisible,则该属性会隐藏一行.这是很多手动工作,但是WPF确实比其他方法更容易.
I am not sure about what you are asking for. I did something similar I think using Infragistics XamDataGrid, and had to do some tricks to try to get the columns lined up. You might try the WPF DataGrid, and in the first column (one with a spacer, a button, and the first text) just add some space before the expand button dependent on the level. Visibility could be controled by an IsVisible property, which hides a row if not IsVisible. It is a lot of manual work, but WPF does make it easier than would be otherwise.


这篇关于树栅控制所需的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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