Tree Node issues with ImageIndex property

G

Guest

Hello,

I am having some problems with tree nodes. This is what's happening:

1) I create the node assign imageindex X
2) I change the imageindex of the Treenode to Y
3) TreeNode's icon looks different
4) I click on the node and the icon reverts to X
5) I click away from the node and the icon reverts to Y

Does anyone know why this is happening and any work aroudns? I've tried
saving the imageindex in the TreeView.BeforeSelect (...) and reassigning it
AfterSelect , but this didnt work either.

Thanks in advance,
Don
 
D

Daniel Pratt

Hi Don,

db said:
Hello,

I am having some problems with tree nodes. This is what's happening:

1) I create the node assign imageindex X
2) I change the imageindex of the Treenode to Y
3) TreeNode's icon looks different
4) I click on the node and the icon reverts to X
5) I click away from the node and the icon reverts to Y

Does anyone know why this is happening and any work aroudns? I've tried
saving the imageindex in the TreeView.BeforeSelect (...) and reassigning it
AfterSelect , but this didnt work either.

Thanks in advance,
Don

Set the SelectedImageIndex of the node to the appropriate index value.

Regards,
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top