"Selected" is not reflected visually

guysl

New member
Joined
Aug 2, 2008
Messages
2
Programming Experience
5-10
Hello all,

When I select a node via the program by setting :
TreeView1.SelectedNode = x
I do not see visually that the node is selected, though the event "TreeView1_AfterSelect" is triggered, but, when I manually click a node, I see that
its text get dark gray background for being selected.

I have the same problem with a selected row in a datagridview.
How can I have the same behaviour via the program? please advise.
Thanks
 
Back
Top