DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sun, 12 Aug 2007 19:18:17 +0100,    posted on: microsoft.public.dotnet.framework.aspnet.webcontrols        back       

Thread Index
  1    David
          2    David


Reading child nodes of a treeview   
Hi all,

I am using .NET 1.1 and Microsoft.Web.UI.WebControls.TreeView

I am populating my treeview from a database and that is all working 
perfectly. Basically, what I want to do is to select certain records in the 
database to copy to another database (publish). For this, I have the 
checkboxes on each node. (I can check a node and all child nodes will be 
selected, to save time.)

On my page, once I have selected the detail to publish, I have a 
"Publish..." button. However, when I click it, I cannot get the nodes that 
are selected. I am not sure where to start...

I have tried starting at the root node, but there doesn't appear to be any 
node.childnodes or similar in order to get the children of the current node.

Spent all day searching but struggling to find answers. :-(

How do I do this?

As a side question... when I have the selected details working, I want to 
just publish those rows. If anyone has any ideas on the best way to do this 
(probably using the current dataset somehow), it would be very much 
appreciated. (There will be some slight changes to the data, for example, 
data related by ID field, the ID field value will naturally change, so child 
data related ID value will have to change).

-- 
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
Date:Sun, 12 Aug 2007 19:18:17 +0100   Author:  

Re: Reading child nodes of a treeview   
Doh!!!

No sooner I post this than I work out how to do it.

treenode.nodes is the same as a treenodecollection, which means that I can 
call a function while reading all the nodes, then pass the treenode.nodes 
into a function that expects the treenodecollection.

Now that I have that, I somehow need to manage the data side of it (my side 
question).

Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available


"David"  wrote in message 
news:%23R3J20Q3HHA.5796@TK2MSFTNGP05.phx.gbl...

> Hi all,
>
> I am using .NET 1.1 and Microsoft.Web.UI.WebControls.TreeView
>
> I am populating my treeview from a database and that is all working 
> perfectly. Basically, what I want to do is to select certain records in 
> the database to copy to another database (publish). For this, I have the 
> checkboxes on each node. (I can check a node and all child nodes will be 
> selected, to save time.)
>
> On my page, once I have selected the detail to publish, I have a 
> "Publish..." button. However, when I click it, I cannot get the nodes that 
> are selected. I am not sure where to start...
>
> I have tried starting at the root node, but there doesn't appear to be any 
> node.childnodes or similar in order to get the children of the current 
> node.
>
> Spent all day searching but struggling to find answers. :-(
>
> How do I do this?
>
> As a side question... when I have the selected details working, I want to 
> just publish those rows. If anyone has any ideas on the best way to do 
> this (probably using the current dataset somehow), it would be very much 
> appreciated. (There will be some slight changes to the data, for example, 
> data related by ID field, the ID field value will naturally change, so 
> child data related ID value will have to change).
>
> -- 
> Best regards,
> Dave Colliver.
> http://www.AshfieldFOCUS.com
> ~~
> http://www.FOCUSPortals.com - Local franchises available
> 
Date:Sun, 12 Aug 2007 20:19:42 +0100   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us