Hi Satish,
Thanks for the sample and also for the update. I understand your requirements better now. Please do the following for this purpose :
// enable all the nodes
treeNodeAdv1.NodeStyle.Enabled=false
// Set all the nodes as editable initially
treeViewAdv1.LabelEdit = true;
// Set the first node as non editable
private void treeViewAdv1_BeforeEdit(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvBeforeEditEventArgs e)
{
if (e.Node == this.treeViewAdv1.Nodes[0])
e.Cancel = true;
}
// Set the first node as non selectable
private void treeViewAdv1_BeforeSelect(object sender, Syncfusion.Windows.Forms.Tools.TreeViewAdvCancelableSelectionEventArgs args)
{
if (args.SelectedNodes[0] == this.treeViewAdv1.Nodes[0])
args.Cancel = true;
}
I have modified your
sample accordingly and have attached it here. Please refer to it and let me know if you need further assistance.
Regards,
Guru Patwal
Syncfusion, Inc.