I have associated an image list with three images to my tree. I only have a single ColumnSet for the tree. I see that I can set the Image "Index" for the ColumnSet as ColumnSet.CellAppearance.Image. Is there a way to set the Image "index" at the node level? (Possibally in the InitializeDataNode event)
You might be looking for, if I understand the documentation correctly, something like:
UltraTreeNode node = new UltraTreeNode();node.Override.NodeAppearance.Image = ImageIndex;
Actually, I have multi-column nodes in the tree, and the NodeAppearance.Image property at various levels in the Tree object model have no effect on these nodes. This approach would work for trees where the ViewStyle is "Standard".
From what I have read, I will need to add a column to my columnset. But, I'm not sure of the details. I'll post an example after I implement the approach.
It sounds like you need to set the image on a Cell, not the node. So you could use any existing column, or, if you prefer, add a new column to the ColumnSet. Then you would do something like:
e.Node.Cells["My Image Cell"].Appearance.Image = 0;