pls help.. treeview related

the.kaushik

Member
Joined
Mar 4, 2007
Messages
16
Programming Experience
Beginner
a picture link has been given. I want to do the same but it should work with database but not with folders and files..
that is i want my database made with MS Access to show like this where each node is the primary key and all the childs will be other attributes.

http://img208.imageshack.us/img208/8337/avgcm7.jpg

hope i was able to clear my doubt!
being a begineer a step by step explanation will be very helpfull
thnx in advance!
 
If it were the checkboxes pointed to you enable this by setting Treeview property CheckBoxes = True.

Adding nodes to Treevview in done with the Nodes property and Add method. TreeView1.Nodes.Add(...)

To display different images for nodes you first add ImageList to form and add some images to it. When adding nodes you choose which index of imagelist to use.

Treeview control isn't using data binding, you get your data and add the nodes manually through code according to the hierarchy there may be.
 
You can add what data you want to database, and you can add what nodes you want to Treeview control, but you can't use regular database binding between them. Perhaps you could if you found a third-party treeview control that provided this, but not with the standard control, there you have fill data manually as I said.
 
ok then i don know what to do with my problem.. i think i should explain the problem and see if any one over here can give some idea..
i am making a project related to mobile contacts where mobile contacts will be stored in a database say in the given below format.

|| Name(PK) || Contact No 1 || Contact No 2 ||
now say in the frontend if we want to add contact numbers from the DB to some textbox or something like that in Dynamic manner how should i proceed..
i have some ideas i will tell u..
1>>>>In gmail when we compose a new mail as u type a single letter in the TO field then all the contacts related to that letter gets displayed.
http://img172.imageshack.us/img172/8057/untitled1yu8.jpg
2>>>>You might have seen the customize tool bar option which comes when we right click on the tool bar of MY COMPUTER
so in that one side our database and the other side our selected items..
http://img89.imageshack.us/img89/9633/untitled1kf4.jpg

hope i was able to clear my doubt...
 
Is it possible for you to get intop a paint package and actually draw us a UI how you want to look? COmbine these bits if necessary
 
Back
Top