Solved

How to create a control that shows two columns of data

Posted on 2004-08-11
2
155 Views
Last Modified: 2013-11-20
Hello,

I'm trying to create a control on a dialog that has two columns: the left column shows the names of some parameters, and the right column shows the parameters' correspoding values, such as:

            values
---------------------------------
param1          aaa
param2          bbbb
.......
paramn          nnnnnn

Also, I need to be able to edit the right column (e.g., to change value aaa to ccc). Are there classes in MFC for implementing it?
 
Thanks for any help.
0
Comment
Question by:minjiezen
2 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 50 total points
ID: 11779081
You can use a CListCtrl woking in "Report" mode, similar to Detailed View of Windows Explorer, but you can edit only the first column. To edit second column look lots of examples in www.codeproject.com about this:
http://www.codeproject.com/listctrl/
0
 

Author Comment

by:minjiezen
ID: 11783390
Thank you very much!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Rewrite URL With Encoded Characters 6 64
Generic progress indicator 6 109
scoreUp challenge 14 48
Problem to open Excel file 15 40
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now