Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to "get control" over columns in Treelist

Status
Not open for further replies.

lklo

Industrial
Joined
Nov 24, 2010
Messages
226
Location
DK
hi ,

I'll like to ask if anybody here can tell me how to determine which column is used , if I add data(string)
to a Treelist created in Blockstyler.

I know how to set example 3 column's

[highlight #8AE234] Enum Columns
ColumnFirst = 0
ColumnSecond = 1
ColumnThird = 2
End Enum[/highlight]
[highlight #8AE234]

tree_control0.InsertColumn(Columns.ColumnFirst, "lklo c1", 180)
tree_control0.InsertColumn(Columns.ColumnSecond, "lklo c3", 180)
tree_control0.InsertColumn(Columns.ColumnThird, "lklo c3", 80)[/highlight]

and I know how to insert a string

-------

I dont use

[highlight #8AE234] tree_control0.InsertNode(node, parentNode, afterNode, Tree.NodeInsertOption.LAST)[/highlight]

But I cant find a solution ,so I can choose which column I will add data in.

lklo
 
Hi,
Me too faced the same issue and found the wayout..
Use node.SetColumnDisplayText(2,"Column 2");
Ex:
tree_control0.InsertNode(node, parentNode, afterNode, Tree.NodeInsertOption.LAST)
node.SetColumnDisplayText(2,"Column 2");

~SKY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top