|
Columns. Get started.
Sunday, 13 September 2009
Flexible TreeView may show nodes either within an unlimited width or within columns. You can add or remove columns using the Columns property, either in the Visual Studio designer or programmatically. Example: // add column. TreeColumn col = new TreeColumn(); // or new TreeColumn(“Column title”, 100); col.Text = “Column title”; col.Width = 100; tree.Columns.Add(col); // attach node control. NodeTextBox tb = new NodeTextBox(); tb.AttachToColumn(col); // or tb.ColumnId = col.Id; tb.AttachTo(tree); // add node. Node node = new Node("test"); node.AttachTo(tree);
|
|