Hello! I use ultratree and I am having some issues: 1. After I do this: public class TreeElement { private string _name; public string Name { get {return _name;} set {_name = value;} } private int _id; public int ID { get {return __id;} set {__id = value;} } } BindingList <TreeElement> _teList = new BindingList <TreeElement> (); ultraTree.DataSource = _teList; The tree reflected both fields. I like to hide the ID. How I can do that?
And how I can rename each of column?2.How can know the level of the selected node?
By default, the tree creates the ColumnSets for you automatically when you bind it. So to hide a column, you can handle the ColumnSetGenerated event and set the Hidden property on the columns you want to hide.
In the same event you can set the Caption on the column(s) to change the text displayed in the header.
You could also turn auto-generation of ColumnSets off and create the ColumnSets yourself to define everything at design-time or run-time.
I was wondering every time why the syntax is different from control to control...
So in Ultratree the code for changing the header is
Columns("Col1").Text = "Group"
in WinGrid
Columns("Col1").Header.Caption = "Group"
Sometime it is very hard to find the correct Property....
greetings