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.
Unfortunately, activation email could not send to your email. Please try again.

Selectivly show checkboxes in tree nodes

Thread ID:

Created:

Updated:

Platform:

Replies:

5753 Jul 16,2003 03:38 PM Jul 17,2003 02:03 PM Windows Forms 1
loading
Tags: Tools
Jim Stewart
Asked On July 16, 2003 03:38 PM

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 02:03 PM

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

CONFIRMATION

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.

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.

;