PDA

Click to See Complete Forum and Search --> : Setting an Initial treeView selection


Cs30Man
Feb 9th, 2004, 11:56 PM
I have a tree view control and I'm trying to set an initally selected node when the appilication starts, I fill the treeView then do the following

treeView1.SelectedNode = this.treeView1.Nodes[0];


it appears to set that nodes .isSelected value to true but the item is not highlighted in the treeview. Anyone know what I'm doing wrong?

Pirate
Feb 10th, 2004, 01:28 AM
Make sure that this 'HideSelection' property is set to false . This should solve it .