Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:

C#
using DevExpress.XtraTreeList;

 private void treeList1_ShownEditor(object sender, EventArgs e)
        {
            if (((TreeList)sender).FocusedNode[colname].ToString() == "aa") 
                ((TreeList)sender).ActiveEditor.Properties.ReadOnly = true;
        }
Posted
Updated 23-Feb-17 23:01pm
v2

1 solution

You are better off asking this question in the DevExpress forums...
 
Share this answer
 
Comments
SaravananMJ 4-Mar-17 2:03am    
Thanks for your guidence..I got my answer
Graeme_Grant 4-Mar-17 2:09am    
you are welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900