Hi Ben,
You could allow the user to select only certain nodes and the make only the selectable nodes get selected, while the non-selectable nodes just have a dotted rectangle around them and are not selected by handling TreeViewAdv AfterSelect event handler.
Code:
private void treeViewAdv1_AfterSelect(object sender, System.EventArgs e)
{
TreeNodeAdv node =this.treeViewAdv1.SelectedNode;
if ((node.Text == "Node0") || (node.Text == "Node2") || (node.Text == "Node4")
|| (node.Text == "Node6")|| (node.Text == "Node8"))
{
this.treeViewAdv1.SelectedNodes.Remove(node);
}
}
Please take a look at the attached sample and let me know if I have understood your problem correctly.
SkipSelection
Thanks for your interest in Syncfusion products.
Regards,
Deepa.