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

Checkboxes in TreeView

Thread ID:





9618 Jan 4,2004 07:21 AM UTC Jan 5,2004 01:10 PM UTC WinForms 2
Tags: Tools
Alexander Arlievsky
Asked On January 4, 2004 07:21 AM UTC

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 10:30 AM UTC

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 01:10 PM UTC

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.

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