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?
Would you be able to provide a sample on how to create a tree view similar to the attached image?
It looks like this is a screen shot of our existing sample. So what is it you want to do that the sample is not already doing?
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.
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.
Thanks Mike! Is it possible to add grid lines to the outlookexpress view style?
It depends what you mean by "grid lines". You are probably looking for the ColumnSet.BorderStyleCell property.