I'm using UltraTree with vb.net and I'm finding it is super easy to bind it to parent/child dataset and it populates the treeview nicely. However I need to hide certain columns, and I can't figure out how to do this in code. I can't use the designer since I'm using code to bind my dataset and that seems to override whatever I set in the designer as far as columns go.
Asked
Active
Viewed 2,076 times
1 Answers
1
Try
UltraTree1.ColumnSettings.ColumnSets(X).Columns(Y).Visible = False
Where X is the columnset name / index and Y is the column name / index

Carl Rippon
- 4,553
- 8
- 49
- 64
-
where would the columnset X come from? It must create it automatically since it is bound. how would I know what is X ? – Alex Jan 25 '10 at 13:37
-
If you do a debug session and do a watch on this after the UltraTree has bound to its data and see what the ColumnSets are – Carl Rippon Jan 25 '10 at 17:07