Results 1 to 2 of 2

Thread: Setting an Initial treeView selection

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Posts
    55

    Setting an Initial treeView selection

    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
    Code:
    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?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Make sure that this 'HideSelection' property is set to false . This should solve it .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width