Tree Node issues with ImageIndex property

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top