Hi Tim,
You could navigate through the nodes in the TreeViewAdv control using the keyboard while in editing mode, by using the following code snippet:
private void treeViewAdv1_BeforeEdit(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvBeforeEditEventArgs e)
{
//TempNode is the Holder of the current editing node
TempNode=e.Node;
TextBox t=e.TextBox;
//KeyEventHandler to handle the Keys pressed in Text box
t.KeyDown+=new KeyEventHandler(t_KeyDown);
}
private void t_KeyDown(object sender, KeyEventArgs e)
{
TextBox t=sender as TextBox;
if(e.KeyData==Keys.Down)
{
//To Stop the editing
this.treeViewAdv1.EndEdit(true);
//To replace the edited contents into the selected node.
TempNode.Text=t.Text;
//End the event
e.Handled=true;
}
}
You could also start the node editing dynamically by using, this.treeViewAdv1.BeginEdit() method. Please take a look at the attached sample and let me know if this fulfills your requirement.
Thanks for using Syncfusion products.
Regards,
Vijay
f35181_6405.zip