关于treelist 和treeview的几个问题求助啊

hm7921936 2011-01-06 11:33:50
DevExpress的treelist控件如何实现treeview的选中效果啊,就是只聚焦在选中的文字区域,其他区域不变。

在就是如何让一个节点顶格显示,就是第一个节点不显示展开的加号,并且能在应该显示加好的地方显示节点内容?

谢谢大家求助啊,如果treelist不行treeview如何实现呢、xiexxie谢谢
...全文
215 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
doubleu2005 2011-01-27
  • 打赏
  • 举报
回复
20多天终于解决了,恭喜
nandy249407850 2011-01-27
  • 打赏
  • 举报
回复
节分???
hm7921936 2011-01-27
  • 打赏
  • 举报
回复
虽然我已经解决了,但是楼上的思路是对的。。。。。。。。节分
憧憬z 2011-01-09
  • 打赏
  • 举报
回复

treeview的效果实现


public class CustomizedTreeView : TreeView
{
public CustomizedTreeView()
{
// Customize the TreeView control by setting various properties.
BackColor = System.Drawing.Color.CadetBlue;
FullRowSelect = true;
HotTracking = true;
Indent = 34;
ShowPlusMinus = false;

// The ShowLines property must be false for the FullRowSelect
// property to work.
ShowLines = false;
}

protected override void OnAfterSelect(TreeViewEventArgs e)
{
// Confirm that the user initiated the selection.
// This prevents the first node from expanding when it is
// automatically selected during the initialization of
// the TreeView control.
if (e.Action != TreeViewAction.Unknown)
{
if (e.Node.IsExpanded)
{
e.Node.Collapse();
}
else
{
e.Node.Expand();
}
}

// Remove the selection. This allows the same node to be
// clicked twice in succession to toggle the expansion state.
SelectedNode = null;
}

}
xiaoqiu1234 2011-01-08
  • 打赏
  • 举报
回复
遍历判断,重新生成一个Tree
hm7921936 2011-01-08
  • 打赏
  • 举报
回复
换一种说法就是treelist有没有fullrowselect属性? 如何实现这种效果
hm7921936 2011-01-08
  • 打赏
  • 举报
回复
我的问题不是生成TREE 是TREE显示的细节!!

  • 打赏
  • 举报
回复
遍历判断,重新生成一个Tree
hm7921936 2011-01-07
  • 打赏
  • 举报
回复
2楼的大哥完全搞错了意思啊。
白鸽 2011-01-07
  • 打赏
  • 举报
回复
http://wenku.baidu.com/view/8a6a16da50e2524de5187e70.html
看看这个有没有用。
hm7921936 2011-01-07
  • 打赏
  • 举报
回复
谢谢楼上回答,我去测试一下
wuyq11 2011-01-06
  • 打赏
  • 举报
回复
Repositoryitemcheckedit
绑定到treelist中。根据Repositoryitemcheckedit判断
treeview
设置showcheckbox
先加一个文本为空子节点,展开时判断
删除空子节点
TreeView1.ShowExpandCollapse = false;
var tree = document.getElementById("treeview1");
var inputs = tree.getElementsByTagName("INPUT");
for()
if(inputs[i].id.indexOf('TreeView')>=0){

}

110,566

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧