Treeview control

  • Follow


I'm using a Treeview control for the first time. I found some code to load 
the control. It works but all it does is load the control. One problem is 
that it does not display the '+' for any root node that has children. It does 
do it for lower level nodes. Any idea how to fix this? Also, where can I find 
out how to add and delete nodes? I tried using the nodeclick event but as 
soon as I coded that event, the tree ceased to function completely i.e. would 
only display the root nodes and refuse to expand further. 
0
Reply Utf 2/15/2007 4:36:00 PM

A couple of things which might be helpful:

Root level nodes will display a "+" symbol only if there are child nodes on 
that node; they will never display a "-" symbol because they cannot be 
collapsed.

The best example I've seen which illustrates the MS treeview control and its 
capabilities is on Alex Dybenko's site.  Have a look at 
http://www.pointltd.com/Downloads/Details.asp?dlID=36

The most comprehensive documentation I've found on the treeview control is
on the MSDN Site.  As a start, this gives the results of a search for 
"treeview" on that site:
http://search.msdn.microsoft.com/search/default.aspx?siteId=0&tab=0&query=treeview
You should find something helpful there.

HTH,

Rob


"mscertified" <rupert@tigerlily.com> wrote in message 
news:7F8088D5-D1DE-4C60-838E-E56E15221153@microsoft.com...
>I already did that, that's how I found the code to load the control. 
>However,
> nothing I've so far found shows how to get the '+' on the root level nodes 
> or
> how to implement adding and deleting nodes.
>
>
> "Dale Fye" wrote:
>
>> Recommend you Google on Access and treeview.
>>
>> You should get a bunch of URLs with explanations on how to perform 
>> various
>> treeview tasks.
>> -- 
>> Email address is not valid.
>> Please reply to newsgroup only.
>>
>>
>> "mscertified" wrote:
>>
>> > I'm using a Treeview control for the first time. I found some code to 
>> > load
>> > the control. It works but all it does is load the control. One problem 
>> > is
>> > that it does not display the '+' for any root node that has children. 
>> > It does
>> > do it for lower level nodes. Any idea how to fix this? Also, where can 
>> > I find
>> > out how to add and delete nodes? I tried using the nodeclick event but 
>> > as
>> > soon as I coded that event, the tree ceased to function completely i.e. 
>> > would
>> > only display the root nodes and refuse to expand further. 


0
Reply Rob 2/16/2007 3:30:35 AM


1 Replies
267 Views

(page loaded in 0.024 seconds)

Similiar Articles:
















7/25/2012 12:43:55 PM


Reply: