The Artima Developer Community
Sponsored Link

Design Forum
Populating Tree and List Views

2 replies on 1 page. Most recent reply: Jul 11, 2005 10:02 AM by Ranjit Vaity

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Ranjit Vaity

Posts: 3
Nickname: robinnexus
Registered: Jun, 2005

Populating Tree and List Views Posted: Jun 18, 2005 4:59 PM
Reply to this message Reply
Advertisement
I have created a Windows Explorer like User control and allow only 4 levels of sub-nodes in the tree structure.
Now as I have to show data related to that node in the list view of the data stored in the database.


Problem: The data transfer between the User control and the form, should I write properites for each field in User ctrl class for each field in data base.
HELP!!!!!!!!!!!!!!!!!!!!!


Razeeth

Posts: 1
Nickname: razeeth
Registered: Jun, 2005

Re: Populating Tree and List Views Posted: Jun 30, 2005 5:43 AM
Reply to this message Reply
As u r decided to show the things in tree view, u will have nodes with some nodes , again nodes with some nodes untill u get the leaf nodes. so there will be a repeated set of same structure when u browse in a tree control from the same tree level. have the data for the tree in the data base as heirarchial one and when u expand the tree, get the correponding details from the database and update the view.

did i understand your question correctly, if not correct me.


-------
Razeeth

Ranjit Vaity

Posts: 3
Nickname: robinnexus
Registered: Jun, 2005

Re: Populating Tree and List Views Posted: Jul 11, 2005 10:02 AM
Reply to this message Reply
Hi razeeth ,
Thx for responding.
Yes, you got me right. but the only thing required is the populating the tree in right way with all the nodes in their right places, the way used of the tree has created.
Help me, thank you!

Flat View: This topic has 2 replies on 1 page
Topic: Policy-Based Design Previous Topic   Next Topic Topic: Help with C++

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use