How to disable inplace edit of some TreeView nodes

  • Thread starter Richard Lewis Haggard
  • Start date
R

Richard Lewis Haggard

Is it possible to disable in place edit of some TreeView nodes while
allowing it in others? If so, how?
 
H

Herfried K. Wagner [MVP]

Richard Lewis Haggard said:
Is it possible to disable in place edit of some TreeView nodes while
allowing it in others? If so, how?

Handle the control's 'BeforeLabelEdit' event, check 'e.Node' and set
'e.CancelEdit' to 'True' to prevent the user from editing the node.
 

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