We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





89306 Aug 21,2009 01:23 PM UTC Aug 24,2009 04:19 AM UTC WinForms 1
Tags: Tools
Asked On August 21, 2009 01:23 PM UTC


How can i prevent a selection node for the nodes who are enable = false.

Balavasanth [Syncfusion]
Replied On August 24, 2009 04:19 AM UTC

Hi Samuel,

Thanks for your interests in Syncfusion products.

You can make use of the BeforeSelect event to prevent a node from being selected when setting enabled as False. Kindly make
use of the code snippet for how to set the args value as canceled one.

void treeViewAdv1_BeforeSelect(object sender, Syncfusion.Windows.Forms.Tools.TreeViewAdvCancelableSelectionEventArgs args)
if (args.SelectedNodes[0].Enabled == false)
args.Cancel = true;

We are also sending you a simple sample as per your requirement. Kindly download it from the below location.


Please let us know if you have any queries.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon