Solved

ListView

Posted on 2009-07-09
3
145 Views
Last Modified: 2012-05-07
How can I do something like this????

I have a Contact. In this contact there is firstname lastname and phonenumber.

I want the first name and last name to show up just like the picture
Unavngivet.bmp
0
Comment
Question by:Mickeys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
drypz earned 500 total points
ID: 24811963
Are you referring to listview or treeview?
0
 

Author Comment

by:Mickeys
ID: 24812139
Hmmm well I guess treeview then
0
 

Author Comment

by:Mickeys
ID: 24812422
well look at this picutre. That is what I have managed. How do I get A , B , C and so on?

And how do I add the name that starts with A under A ???
 //Supress repainting
            treeView1.BeginUpdate();
            for (int i = 0; i < 5; i++)
            {
                TreeNode n = new TreeNode("A(" + i.ToString() + ")", 0, 1);
                treeView1.Nodes.Add(n);
                for (int j = 0; j < 1; j++)
                {
                    TreeNode c = new TreeNode(" " + contactManager.Contacts[j].FirstName);
                    n.Nodes.Add(c);
                    for (int k = 0; k < 2; k++)
                    {
                        c.Nodes.Add(new TreeNode(i.ToString() + " " + j.ToString() + " " + k.ToString(), 0, 1));
                    }
                }
            }
            //resume repainting
            treeView1.EndUpdate();

Open in new window

Unavngivet.bmp
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question