Hi,
I am pretty new with UltraTree. Do you by any chance have a sample code that shows to how to create one?
I want to create a tree similar to the below example:
Name age height
+Joe 25 5'11
+John 21 6'5
name drilldown/expansion when user clicks to plus sign button.
Name Age Height
+ Joe Lee 21 5'7
+ Joe Tow 22 6'2
if user now clicks on Joe Lee, they can expand further.
Thanks
Joe
Hi Joe,
The easiest way to do this is to bind the tree to a DataSource, like a DataSet or an UltraDataSource. Is that what you want to do?
Or are you trying to populate the tree in code without a DataSource?
Either way, there are samples installed with NetAdvantage that do this, as well as step-by-step instructions in the documentation.
Yes, I am trying to populate the tree in code. Do you have the link to this documentation?
Here's a link to the online help.
NetAdvantage® WindowsForms Online Help :: 2011.1
Go to the Developer's Guide, then Controls, and you can scroll down to WinTree. There's lots of helpful how-to articles there to get you started.
I recommend that you use the designer to create the ColumnSets you need at design-time. That will be easier than doing it in code.
It depends what you mean by "grid lines". You are probably looking for the ColumnSet.BorderStyleCell property.
Thanks Mike! Is it possible to add grid lines to the outlookexpress view style?
Mike Saltzman said: To achieve something like this without data binding, you just have to create one ColumnSet (since the columns are the same on every level) and assign it to the tree.ColumnSettings.RootColumnSet.Then set the ViewStyle to OutlookExpress and add the nodes the same way I did in my sample code above.
The sample code you provided shifts the column headers rightward when user expands the child nodes. I would like the columns to be static(i.e every nodes have the same column headers and it doesnt shift rightward when user expands the nodes).
I beleive I answered your question above. You might not have seen it, since I edited my post after my initial reply.