Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4165
LeftImages and Columns
posted

Hello:

I am using an UltraWinTree and the Outlook Express style. Everything is cool, except, when i add the node, and set the left image, I do not see that image.

I have to do it like this: (this is a for loop that is looping through another tree to write the nodes the column based tree, like windows explorer)

 worknode = utvPVDetails.Nodes.Add(t.Key, t.Text);

worknode.Cells[0].Appearance.Image = ilProject.Images[(Int32)t.LeftImages[0]];

Why can't I just do this:

 worknode.LeftImages.Add((Int32)t.LeftImages[0]);

So that I can utilize the imagelist I have associated with this tree?

 

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    LeftImages and RightImages only apply to standard-style nodes. They will not work with grid or outlookexpress style.

    What you probably need to do is add an unbound column to your ColumnSet and set it's DataType to Image and display your images that way.

Children