Created
July 17, 2012 03:17
-
-
Save fresky/3126785 to your computer and use it in GitHub Desktop.
How to disable C# tree node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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