KeyDown event catching in TreeView AfterLabelEdit event

KeyDown event catching in TreeView AfterLabelEdit event

Post by Shakir Hus » Fri, 09 Jul 2004 00:05:12


Andres,

During edit mode the keydown wont work for TreeView Control. It includes
even Escape key. Keydown events are routed to the NodeText editing. Once the
EditMode is off, keydown event is routed to Treeview control..




key, but I realize that the KeyDown event doesn execute. Any help?
 
 
 

KeyDown event catching in TreeView AfterLabelEdit event

Post by Shakir Hus » Fri, 09 Jul 2004 00:49:08

In the LabelEditEventArgs, do this

if(e.Label == null)
{
//user has pressed esc key
}





edition and let the original text ? Besides, after the edition I send some
values to a database, but when is cancel, nothing has to do.

the
message

 
 
 

KeyDown event catching in TreeView AfterLabelEdit event

Post by Shakir Hus » Fri, 09 Jul 2004 01:27:50

When user does not change the value (either by pressing Enter or ESC key)
the value will be null. It means that value is not changed.

If you change the value and press enter it wont be null





message

some

includes
Once

Escape