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.

Checkboxes in TreeView

Thread ID:





9618 Jan 4,2004 02:21 AM Jan 5,2004 08:10 AM Windows Forms 2
Tags: Tools
Alexander Arlievsky
Asked On January 4, 2004 02:21 AM

Hi, We want to have checkboxes only on some nodes (leafs). All other nodes (that are parents) should be drawn without checkboxes at all. Can it be done without owner-drawing all nodes ? Alexander Arlievsky alex@mprest.com

Administrator [Syncfusion]
Replied On January 5, 2004 05:30 AM

Hi Alexander, Here is a code snippet that demonstrates how you can show checkboxes for only the first (node 0) below the parent node in a TreeViewAdv control in Essential Tools 2.0: //Show Checkbox only for the first node below the parent node(s) int i = 0; while (i < this.treeViewAdv1.Nodes.Count) { this.treeViewAdv1.Nodes[i].Nodes[0].ShowCheckBox = true; i++; } I hope this gives you an idea to do what you are looking for. Regards, Arun

Alexander Arlievsky
Replied On January 5, 2004 08:10 AM

Thanks, Was version 2.0 finally released or your example uses beta ? Can it be done on 1.6 ? Alexander Arlievsky alex@mprest.com


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.