473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

TreeView - OnPaint override? - Boolean to display certain nodes

Hello,

It appears that i may need to create a custom treeview.

I have a set of nodes - sometimes, if a user selects an option , i may
want to only display a subset of those nodes... and i don't want to
have to create a new treeview every time. is it possible to just
override the paint method for a treeview to loop through my custom
nodes and check some display boolean before making the node visible to
my user?

is there an easier way to do this?

SN
Nov 15 '05 #1
1 3665
Hello,

You could implement that behavior by adding/removing nodes dynamically. The
Nodes property returns you a NodeCollection which has methods like Add,
Remove, and so on.
This way, you won't have to override the paint method.
Hello,

It appears that i may need to create a custom treeview.

I have a set of nodes - sometimes, if a user selects an option , i may
want to only display a subset of those nodes... and i don't want to
have to create a new treeview every time. is it possible to just
override the paint method for a treeview to loop through my custom
nodes and check some display boolean before making the node visible to
my user?

is there an easier way to do this?

SN


Regards,
Adrian Vinca [MSFT], Developer Division
--------------------------------------------------------------------
This reply is provided "AS IS", without warranty (express or implied).

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.

Nov 15 '05 #2

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

Similar topics

0
by: Eddie Smit | last post by:
Hi all, IS IT POSSIBLE to display certain nodes WITHOUT a checkbox (because this 'option' is not available for the user?) Another possibility maybe is to display the text grey en make this...
0
by: rao | last post by:
I am trying to get sub nodes for for clicked node using getChildren() method as shown below. I am getting javascript exception error (subtree.null )when nodes are not expanded. The code works only...
2
by: Jack | last post by:
Hello, I am trying use a TreeView with checkboxes. I would like to check more than one node and allow all child nodes of selected nodes to be checked or unchecked with the parent is checked. ...
1
by: garyusenet | last post by:
Hi All, I'm eagerly anticipating what you have to say on something that's stumped me over the weekend. I'm writing a small application which utilises a treeview control. I've figured out how to...
2
by: Stuart | last post by:
Hi, For design reasons I need treeview control to display right-to-left, i.e, with its parent nodes to the right and the child nodes indented to the left, however I cannot find a suitable...
0
by: fishware | last post by:
I've got a treeview created by TreeNode node = treeView1.Nodes.Add("one"); node.Nodes.Add("three"); looks like: one -three
2
by: npm | last post by:
I'm trying to display XML nodes whose parent node has a certain attribute (or attribute value). I have one code that works in Firefox, but not IE and another code that works in IE, but not Firefox. ...
1
by: Sasi Kumar | last post by:
I have a xml file. I want to display the nodes and childnodes in my datagrid, i used xmldatasource, but i can read a specific path only. The problem is i should not use dataset and xmldocument. Give...
0
by: devidevi | last post by:
hello sir, i'm doing a project in Mobile Adhoc network in ns2 simulator i have to perform routing with AODV.. my problem is i have to disable certain nodes ( in a 20 node topology) from...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.