473,503 Members | 13,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what no TriState Checkboxes in TreeNodes ?

Hi,

I have a simple treeview, I want to put tri state checkboxes.
I thought this would be standard,
TreeViewNode has checkboxes,
and checkboxes have tri state,
but the TreeViewNode checkbox has no tri state capability.

I googled for this and suepried to find this is lacking
however they were mostly quite old links,
I also found a example of how to use icons
in place of the tri state checkbox,
but this means you cant use both icons and tri state checkboxes :s

I need to have an icon to show wich node is selected and what type if item
it is,
(theres quite a lot)

The tree is going to be a decision tree so the checkbox determines
if the dicision is yes/no or if the decidion is defered till lower nodes.

I use .net 2.0 c# express,
I cant beleive theyve not implemented common functionality
consistently.

have they added anything in later .bet versions by chance?
or is there an api function wich can force the TreeVieweNode checkbox to the
third state?

many thanks
Colin
Jul 17 '08 #1
1 3756
I seem to have managed it using StateImageList in the treeview and
implementing the state chnage myself
thanks

Colin

"colin" <co*********@ntworld.NOSPAM.comwrote in message
news:I5*******************@newsfe14.ams2...
Hi,

I have a simple treeview, I want to put tri state checkboxes.
I thought this would be standard,
TreeViewNode has checkboxes,
and checkboxes have tri state,
but the TreeViewNode checkbox has no tri state capability.

I googled for this and suepried to find this is lacking
however they were mostly quite old links,
I also found a example of how to use icons
in place of the tri state checkbox,
but this means you cant use both icons and tri state checkboxes :s

I need to have an icon to show wich node is selected and what type if item
it is,
(theres quite a lot)

The tree is going to be a decision tree so the checkbox determines
if the dicision is yes/no or if the decidion is defered till lower nodes.

I use .net 2.0 c# express,
I cant beleive theyve not implemented common functionality
consistently.

have they added anything in later .bet versions by chance?
or is there an api function wich can force the TreeVieweNode checkbox to
the third state?

many thanks
Colin

Jul 17 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1703
by: Billy Jacobs | last post by:
Problem: 1.I want to use the treeview control. 2.I only want checkboxes on some nodes. I don't know how to accomplish this easily. Any suggestions? Billy Jacobs
0
2404
by: Norbert Heidbüchel | last post by:
Hi all, I have read a lot of postings and web pages about drag and drop and treeviews, but could not find an answer to my problem. Sorry, if I missed something. I am trying to drag and drop...
1
6255
by: Trevor | last post by:
How can I recursively loop through _every_ TreeNode in a TreeView using C#? The CheckBoxes property enables checkboxes for all TreeNodes. I only want checkboxes on TreeNodes that have 0 child...
4
1283
by: Mark Goldin | last post by:
Here is an ASP page: <%@ Register TagPrefix="mytree" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %> <%@ import namespace="Microsoft.Web.UI.WebControls"%>...
10
1739
by: DrPete | last post by:
Hi People Could anyone suggest to me the best way to distinguish treenodes? By this I mean I'm in a situation where I have a TreeNode that displays a number of categories and within those nodes...
0
1107
by: David | last post by:
Can WebControls be added to TreeNodes in the TreeView? David -- Be Positive Every Day
5
11253
by: masterej | last post by:
Developers, Is there any way to disable all checkboxes on a form? I have a form with 160 checkboxes and I want to be able to disable all of them. Is there a way I can do something like this: ...
3
2603
by: Eric B. | last post by:
How do I set a tristate value programmatically? It won't accept true, false, or any number besides 0. The property I am trying to set is dataGrid_1.Columns.Resizable Eric B.
7
2284
by: viki1967 | last post by:
I need one function javascript that: 1) when I enter in this htm page I see enabled only checkbox of categories A, M and T; checkboxes of microcategories all disabled; 2-a) If I select the...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7298
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.