Hi Tom,
You could use the TreeViewAdv''s BeforeEdit event for this purpose. TreeNodeAdvBeforeEditEventArgs.Node indicates the target node for editing.You could check if the node is the parentNode using the node''s HasChildren property and based on the result set the TreeNodeAdvBeforeEditEventArgs.Cancel property appropriately.
private void treeViewAdv1_BeforeEdit(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvBeforeEditEventArgs e)
{
// Check if they are parent nodes
if (e.Node.HasChildren)
{
MessageBox.Show("I am ParentNode");
e.Cancel = true;
}
}
Please take a look at the attached sample and let me know if this helps you.
Thanks for yor interest in Syncfusion products.
Regards,
Deepa.
UnEditNode.zip