Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Hierarchical DataList/DataGrid

Reply
Thread Tools

Hierarchical DataList/DataGrid

 
 
nicksertis@gmail.com
Guest
Posts: n/a
 
      04-10-2006
Hi All,

I'm working on a project which has thrown up an issue that I'd like
some advice on. It basically calls for me to display a tree like
structure, but for each node to be editable (ie each row will have a
number of fields that will become editable when selected). The tree has
to be collapsable too. This is all on .NET version 1.0.

I was thinking that I could use a datalist to display all first level
(in the tree) items, and then when one is clicked I would insert rows
into the list that represented all items under that tree node. If
another top level item was clicked, I would first remove/collapse the
second level items from the list and then insert the second level items
for the newly clicked item.

Does any of this make sense? The main hurdle in this solution is
inserting rows into a datalist or datagrid, which i'm not sure is even
possible? The reason for trying to do this rather then reload the whole
tree is to save accessing the DB and reloading the tree each time the
page loads. Is there a clever way to store a dataset in memory (session
var etc) if rebuilding the tree each time is necessary?

Let me know if any of this is unclear or if you need more info.

Many Thanks,
Nick

 
Reply With Quote
 
 
 
 
nicksertis@gmail.com
Guest
Posts: n/a
 
      04-12-2006
Hi,

For anyone interested, I ended up using a single DataList and a
recursive function to build the tree each time the page is loaded.
Since only 1 item at each level can be expanded, the amount of data
retrieved from the DB is minimal.

If anyone wants more info, just send me and email and I'll try to help.

Thanks,
Nick

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hierarchical QoS with and without IPSec ovt@redcenter.ru Cisco 0 01-18-2006 09:43 AM
Hierarchical token bucket for Cisco (3640)?!? papi Cisco 1 01-25-2005 04:26 AM
Converting 'flat' gate level names to hierarchical names Paddy McCarthy VHDL 3 09-24-2004 05:34 PM
Hierarchical Credit-based Queuing (HCQ): QoS implementation feedback? Vicky Cisco 0 05-09-2004 07:07 AM
hierarchical design with structural VHDL question Neil Zanella VHDL 2 10-22-2003 11:01 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57