473,387 Members | 1,529 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,387 software developers and data experts.

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 15346
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
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
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
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
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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,...

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.