473,320 Members | 2,177 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,320 software developers and data experts.

C# TreeView checkbox..

77
Woulod anyone be able to point me in the right direction with treeviews. Or perhaps tell me if a treeview is/or is not what im looking for in this case.


Im pulling back some information from a database similar to:
Im not quite sure how to display it from my mental to on screen so i hope this make sense.
Expand|Select|Wrap|Line Numbers
  1. [0] person 1
  2. ----[0] email addr
  3. --------------[0] notes for email addr
  4. ----[1] email addr
  5. --------------[0] notes for email addr
  6. [1] person 2
  7. etc.
  8.  
edit: my list of people and there email address is not limited. So one person may have 30 email addresses (in theory).

Now, what im trying to do is have this information displayed in a treeview with a check box. laid out similar to those tiers but probably with notes on the same line as email addr. Then the user can select which email they would like to send to and as long as the notes have been filled in they should have a good idea on who its to.

Will a tree view allow me to do this? Would someone be able to point me in the right direction on this. Ive done a few "small guides" but nothing really helped me achieve this. Also, if a treeview is not the way to do it please suggest another :)

Thanks very much,
Piercy
Jan 8 '08 #1
2 6821
CyberSoftHari
487 Expert 256MB
Are you sure that you want to display only Name and E-mail ID?
My suggestion is you can use two list views one is for Details of costumer and the other is to display list of E-mail Id for a particular costumer.

1. Hide E-Mail listview.
2. when the user clicks a costumer then fill and show the e-mail list view of that particular costumer.
Note: Using list view is pretty complicated for this but it will be users friendly. (You can use treeview for only Name and E-mail ids).
Jan 8 '08 #2
piercy
77
Are you sure that you want to display only Name and E-mail ID?
My suggestion is you can use two list views one is for Details of costumer and the other is to display list of E-mail Id for a particular costumer.

1. Hide E-Mail listview.
2. when the user clicks a costumer then fill and show the e-mail list view of that particular costumer.
Note: Using list view is pretty complicated for this but it will be users friendly. (You can use treeview for only Name and E-mail ids).
its actually students :) but there are already listboxes allowing the selection of the student. this would be the final check for emailing. Unfortunatly because the information im pulling is already defined within another applications database im limited on what i can pull. Currently the only real reqs are email and the "notes". Im also going to try and add things like family status ie. is the email addr for a parent etc.

ive finally got a treeview working.. all the guides i found didnt help. i managed to guess it myself.

My next problem is... is there a way that when the parent node is checked / dechecked then check/ decheck all the child nodes?


Wondered if there was soem sort of built in function im missing..?


ive got as far as using the afterchecked event and tryign to foreach on the child nodes..


Thanks again,
Piercy
Jan 8 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: feel | last post by:
Goin' crazy with this recursive function ported from delphi... I send a string like DirA/ DirB /DirC but i get in the treeView each one in a new node.Cant get the child node....!! -DirA -DirB...
1
by: kiran | last post by:
I cratee a form to meet the fallowing requirement. 1. If any node is selected the corresponding checkbox should be checked 2. If any checkbox is clicked the corresponding node should be selected ...
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...
1
by: nicholas | last post by:
I am using Obout TreeView: www.obout.com I would like to implement a page to add and remove categories to a product with the Obout Treeview with checkboxes. Does anyone allready did this and...
1
by: Sun | last post by:
Hi All, I am facing a prob with treeview with check boxes When ever a javascript funtion is associated with Treeview, I am not able to retrice the Values of checkboxes in the tree. When no...
3
by: James Lennon | last post by:
Does anyone know how to disable a single check box in a Windows Forms TreeView control.
2
by: engwar1 | last post by:
I'm a .Net newbie and have started writing a Windows Forms application to assist me in choosing files/directories to move from one drive to another. Basically what I want is something like the...
2
by: Manikandan | last post by:
Hi, I'm using .NET1.1. I have a windows form with two controls 1.Treeview 2.Checkbox I added the items into tree view, the user selects the item in treeview. When i click the item in...
0
by: yogarajan | last post by:
hi all i need proper alignment my treeview looks like <checkbox>Fruits(parent)-134 <checkbox>Mango(child)-45 <checkbox>Orange(child)-45 ...
0
by: =?Utf-8?B?SG9seXNtb2tl?= | last post by:
Hi All, I am trying to visualizze checkbox in my TreeView Control, but I does n't show up. I see there is a space for checkbox but I don't see the checkbox. I wonder what would have gone wrong...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.