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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Selectivly show checkboxes in tree nodes

Thread ID:





5753 Jul 16,2003 07:38 PM UTC Jul 17,2003 06:03 PM UTC WinForms 1
Tags: Tools
Jim Stewart
Asked On July 16, 2003 07:38 PM UTC

It appears that the TreeNodeAdv.NodeData.ShowCheckBox property does not selectively display check boxes on tree nodes. My goal is just that: to have some nodes with check boxes and some without. Can you explain how to accomplish this and how the ShowCheckBox property on the tree node interacts with that on the TreeViewAdv. Thanks in advance. Jim Stewart

Jim Stewart
Replied On July 17, 2003 06:03 PM UTC

Well I answered my own question - but it brings up an interesting ... issue? ...problem? I was creating nodes thus: TreeNodeAdv tNode = new TreeNodeAdv (""); tNode.NodeData.ShowCheckBoxe = true; // or false parentNode.Nodes.Add (tNode); This procedure failed to show the check boxes interactively. However, when I changed the order of operations, thus: TreeNodeAdv tNode = new TreeNodeAdv (""); parentNode.Nodes.Add (tNode); tNode.NodeData.ShowCheckBoxe = true; // or false Viola! The check boxes appear (or don't appear) as required. Now. Why should it make any difference whatsoever which order I perform these operations? It seems unnecessarily confusing to me. Any guidance would be appreciated. Jim Stewart


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

Live Chat Icon For mobile
Live Chat Icon