本文主要是介绍[C#/DevExpress]treeList相关方法总结,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
treeList设置焦点方法:
this.treeList1.Focus();//当前编辑的单元格光标消失;
treeList取消编辑方法:
this.treeList1.CancelCurrentEdit();
//总结:根据什么依据不能编辑,就论自己的情况而定,ShowingEditor 是显示编辑,如果取消编辑为真
//e.Cancel = true; //就是不允许编辑
private void treeList1_ShowingEditor(object sender, System.ComponentModel.CancelEventArgs e)
{
if (this.treeList1.FocusedNode.Level == 0)
{
e.Cancel = true;
}
}
这篇关于[C#/DevExpress]treeList相关方法总结的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!