1) No, you can't hide ancestors and still have the leaf nodes show up. You can, however, assign the table that represents the "level 3" data directly to the DataSource property. For example, in the Northwind Customers->Orders->OrderDetails example, instead of assigning the DataSet to the DataSource property and "Customers" to the DataMember, you would just assign the OrderDetails table to the DataSource property.
2) I'm not sure I follow this; you can hide columns on any level, so the answer to this question if I understood it is yes, you just set the Visible property for the column in that band.
3) Right here.
Hi,
We are also looking for the code the hide the columns in the treeview. We tried this code
ulTreeviewItems.ColumnSettings.ColumnSets(0).Columns(
"DatabaseID").Visible = False
but it is not working for us, can you please your code. We want to hide few columns in the Treeview
That is the right syntax.
If you have several nodes, may be the column "DatabaseID" is not in the first ColumnSets(0) ?
Yeah, that syntax is correct. So either you are setting Visible on the wrong Column or ColumnSet. Or else something else in your code is changing it back to true at some other point.