473,507 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Alternative To Treeview Control

WJA
I'm looking at building an application that needs to display 4 levels
of hierarchical data. Initially the obvious choice for this would seem
to be the treeview control. After searching this newsgroup I've found
that there is a lot of opinion that says to stay away from the treeview
if at all possible due to lack of documentation and distribution
problems. Added to this, I've never used it before and don't need a new
learning curve at the moment.

Are there user friendly alternatives to the treeview using native
Access controls? For instance, a series of list boxes or combo boxes.
Without actually trying it, I think that this could be made to work.
I'm not sure just how user friendly it would be though.

Has anyone implemented this type of alternative to the treeview? I
would be grateful to hear of any experiences or opinions.

Thanks in advance.

Nov 13 '05 #1
10 15373
WJA wrote:
I'm looking at building an application that needs to display 4 levels
of hierarchical data. Initially the obvious choice for this would seem
to be the treeview control. After searching this newsgroup I've found
that there is a lot of opinion that says to stay away from the
treeview if at all possible due to lack of documentation and
distribution problems. Added to this, I've never used it before and
don't need a new learning curve at the moment.

Are there user friendly alternatives to the treeview using native
Access controls? For instance, a series of list boxes or combo boxes.
Without actually trying it, I think that this could be made to work.
I'm not sure just how user friendly it would be though.

Has anyone implemented this type of alternative to the treeview? I
would be grateful to hear of any experiences or opinions.

Thanks in advance.


While not quite as "sexy" as the Treeview control, I use the MSOutline control
for hierachal display. Other than including the ocx file with my app I have
never had any issues with it.

Only problem is I think I got that as part of the 97 ODE so I don't klnow if
it's generally available if you don't have that.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
WJA
Thanks for the feedback Rick. No, I don't have the outline control and
would like to avoid using any external controls if possible.

Regards.

Nov 13 '05 #3
I doubt you'd be able to simulate a treeview control using native Access
controls ... I use the Mabry control in my Access 2000/2002 projects with
absolutely no trouble (www.mabry.com).

--
Scott McDaniel
InfoTrakker Software

"WJA" <WJ****@hotmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Thanks for the feedback Rick. No, I don't have the outline control and
would like to avoid using any external controls if possible.

Regards.

Nov 13 '05 #4
On 17 Aug 2005 15:48:55 -0700, "WJA" <WJ****@hotmail.com> wrote:

Well, a subform can embed another subform, but only to a max of 3
levels deep. Personally I'm adverse to syntax like
forms!frmMyForm.mysubfrm.form!my2subform.form!my3s ubform.form.mycontrol.
Perhaps you can stomach this?

HTML comes to mind: perhaps you could use a Webbrowser control and
simulate the entire thing in HTML. There are server-side controls
available for HTML; we used one in a web project. Worked nicely.

Distribution of an OCX difficult? Deal with it. Or hire the folks
from SageKey to do it for you. We did that in a project. Sweet.

-Tom.
I'm looking at building an application that needs to display 4 levels
of hierarchical data. Initially the obvious choice for this would seem
to be the treeview control. After searching this newsgroup I've found
that there is a lot of opinion that says to stay away from the treeview
if at all possible due to lack of documentation and distribution
problems. Added to this, I've never used it before and don't need a new
learning curve at the moment.

Are there user friendly alternatives to the treeview using native
Access controls? For instance, a series of list boxes or combo boxes.
Without actually trying it, I think that this could be made to work.
I'm not sure just how user friendly it would be though.

Has anyone implemented this type of alternative to the treeview? I
would be grateful to hear of any experiences or opinions.

Thanks in advance.


Nov 13 '05 #5
WJA
Thanks folks. The Mabry control looks like it might do the job.

Nov 13 '05 #6
"WJA" <WJ****@hotmail.com> wrote in
news:11**********************@g44g2000cwa.googlegr oups.com:
I'm looking at building an application that needs to display 4
levels of hierarchical data. Initially the obvious choice for
this would seem to be the treeview control. After searching
this newsgroup I've found that there is a lot of opinion that
says to stay away from the treeview if at all possible due to
lack of documentation and distribution problems. Added to
this, I've never used it before and don't need a new learning
curve at the moment.

Are there user friendly alternatives to the treeview using
native Access controls? For instance, a series of list boxes
or combo boxes. Without actually trying it, I think that this
could be made to work. I'm not sure just how user friendly it
would be though.

Has anyone implemented this type of alternative to the
treeview? I would be grateful to hear of any experiences or
opinions.

Thanks in advance.

Actually, you can simulate a treeview with a form in datasheet
view and some code to manipulate the form's filter.

You have to pre-compute the row number and store it in the
table, and also the level number.

table structure
ROW, LEVEL, text2display
--- ----- ------------
1 1 aaaa
2 2 bbbb
3 3 cccc
4 4 dddd
5 3 xxxx
6 2 yyyy
7 1 fsdf
8 2 sdfs
9 3
to expand a node, you get its row number, as rowfrom, the number
of the next row as rowto at the same or lower level and level +1
as newlevel and add a filter condition that adds
Where ((rownumber BETWEEN RowFrom AND RowTo -1) AND level =
newlevel).
String a bunch of these together with OR and you have a
treeview.

Example Where (([ROW] between 1 and 6) AND level <= 1) OR
(([ROW] between 2 and 5) AND level <= 2) OR (([ROW] between 3
and 4) AND level <= 4)

store each set of to, from and level in an array and you got a
good start.
--
Bob Quintal

PA is y I've altered my email address.
Nov 13 '05 #7
"WJA" <WJ****@hotmail.com> wrote in
news:11**********************@g44g2000cwa.googlegr oups.com:
Are there user friendly alternatives to the treeview using native
Access controls? For instance, a series of list boxes or combo
boxes. Without actually trying it, I think that this could be made
to work. I'm not sure just how user friendly it would be though.


I've implemented something like that with a listbox, using
indentation to indicate the levels. Here's an example:

http://www.dfenton.com/DFA/examples/Tree.gif

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #8
WJA
Thanks for the replies Bob and David. I will experiment with your
suggestions.

Nov 13 '05 #9
You can fake a treeview by using a union query and a little VBA code.
You
don't get all the nice features of the .ocx like programmatic access to

nodes, you would have to implement those classes on your own, but it
may be
of use to you or give you some ideas:-

http://www.assaynet.com/downloads/access/treeview.mdb

I've done this in other applications up to four levels deep, with new /
edit
/ delete buttons for record manipulation, and although it takes a bit
of
work it pays off in not having to worry about ActiveX controls.

Nov 13 '05 #10
I looked at the alternatives to a treeview control, but I prefer a real
treeview. Three weeks ago I did not have a clue about treeviews, but you
are welcome to the sample at
http://www.psci.net/gramelsp/TreeviewSample.zip

Basically it is just code I copied from a message by Robert Kirchner. My
programs are only applicable to my standalone computer, so I need not
address the problem that others computers may not have the control
installed.

Mike Gramelspacher

"WJA" <WJ****@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I'm looking at building an application that needs to display 4 levels
of hierarchical data. Initially the obvious choice for this would seem
to be the treeview control. After searching this newsgroup I've found
that there is a lot of opinion that says to stay away from the treeview
if at all possible due to lack of documentation and distribution
problems. Added to this, I've never used it before and don't need a new
learning curve at the moment.

Are there user friendly alternatives to the treeview using native
Access controls? For instance, a series of list boxes or combo boxes.
Without actually trying it, I think that this could be made to work.
I'm not sure just how user friendly it would be though.

Has anyone implemented this type of alternative to the treeview? I
would be grateful to hear of any experiences or opinions.

Thanks in advance.

Nov 13 '05 #11

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

Similar topics

5
19868
by: SoKool | last post by:
Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control. I intend to use a treeview to generate a...
1
2160
by: Srinivasa Raghavan | last post by:
Hi All, I have some doubts on the Treeview control and Form Authentication 1) will Form Authentication work if cookies are disabled. 2) I have problem in the following code (TreeView...
2
1776
by: Chris | last post by:
Hi, anyone experience with the TreeView control that is available in the Microsoft.Web.UI.WebControls component ? I want to add a few nodes to the TreeView-control but don't know quite how :...
3
2817
by: Peter | last post by:
Hello, We are inserting a side menu to our application using a class that is writing HTML on all our pages. This is a part of the code as an example: writer.Write(" <table WIDTH=""100%""...
4
14162
by: Ben Coats | last post by:
Hey, I'm trying to find code for an Explorer-style Directory ComboBox. (You know, it display "Desktop", "My Computer", all drives, etc., but it has a treeview control inside the combobox so that...
10
2331
by: p3t3r | last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS styles for the root level nodes. The topmost root node should not have a top border, all the other root nodes should have a...
5
1996
by: david | last post by:
I do not know if there is a treeView control for web form in .NET 1.1. I know there is IE Webcontrol package which has the treeview control for ..net 1.0. I have tested it in .net 1.1 before. It...
0
1975
by: noneya22 | last post by:
I want to use a TreeView control as a one-level, vertical navigation menu. I'm using this control currently with a SiteMapDataSource and .sitemap file. I've written code that associates an image...
1
2220
by: echuck66 | last post by:
Hi, I have a Winforms 2.0 project that I'm working on that involves populating a treeview control from data contained in a fairly large dataset that has to be refreshed periodically. I have no...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7482
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
5623
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
5041
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
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
411
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.