如何使用Windows窗体中的xtratreelist只读列 [英] How to make column read only in xtratreelist in windows form

查看:89
本文介绍了如何使用Windows窗体中的xtratreelist只读列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我获取数据的表单数据库并将其绑定在treelist中。我想将一些列作为只读属性。我可以在treelist中执行只读行。但我不能执行相同的过程专栏。



我尝试了什么:



I fetch the data's form data base and bind it in treelist .I would like to make some of the columns as read only property.I can do read only rows in a treelist.but i can't do the same process for column.

What I have tried:

using DevExpress.XtraTreeList;

 private void treeList1_ShownEditor(object sender, EventArgs e)
        {
            if (((TreeList)sender).FocusedNode[colname].ToString() == "aa") 
                ((TreeList)sender).ActiveEditor.Properties.ReadOnly = true;
        }

推荐答案

你最好在DevExpress论坛中提出这个问题......
You are better off asking this question in the DevExpress forums...


这篇关于如何使用Windows窗体中的xtratreelist只读列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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