Skip to content

Instantly share code, notes, and snippets.

@fresky
Created July 17, 2012 03:17
Show Gist options
  • Save fresky/3126785 to your computer and use it in GitHub Desktop.
Save fresky/3126785 to your computer and use it in GitHub Desktop.
How to disable C# tree node
private void Tree_BeforeSelect(object sender, TreeViewCancelEventArgs e)
{
e.Cancel = IsTreeNodeSelectable(e.Node);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment