Solved

edit CListCtrl

Posted on 2001-08-23
8
967 Views
Last Modified: 2013-11-20
I use a CListCtrl report style and I want all the columns to be editable not just the label (first colomn).
Is it possible with CListCtrl?
0
Comment
Question by:AdrianBogdan
8 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 6418337
i dont think u can, i used a different way to allow columns editing.
i poped up a dialog with editable listbox which support checkboxes so he can not only change the columns but also determine which one to display.
if u want the code i can give u
0
 
LVL 31

Accepted Solution

by:
Zoppo earned 300 total points
ID: 6418385
Hi AdrianBogdan,

take a look at http://www.codeguru.com/listview/edit_subitems.shtml

ZOPPO
0
 
LVL 7

Expert Comment

by:peterchen092700
ID: 6419279
just a comment to complement ZOPPO's link:

There are typically two ways to achieve that:
a) create your own popup edit control when user clicks an item
b) reposition thew standard edit control over the line the user clicked on

On codeguru and codeproject you'll find examples on both.

Good luck
Peter
0
 
LVL 4

Expert Comment

by:jtwine100697
ID: 6420554
Bear in mind that you are not only limited to using an Edit control as the interface to modify a column: you can use anything you want... you just have to code it yerself! :)

-=- James.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:AdrianBogdan
ID: 6427693
Obviously I can implement my own editing; I was asking if CListCtrl has it implemented already...

Anyway, the code from Zoppo's link is ok; so he gets the points..

10x u all 4 your sweat
0
 

Author Comment

by:AdrianBogdan
ID: 6427699
hope you don't mid for giving you an B grade :))
see my comment above
0
 
LVL 31

Expert Comment

by:Zoppo
ID: 6427748
>hope you don't mid for giving you an B grade
well, unfortunateley I do a bit, coz:

>I was asking if CListCtrl has it implemented already
I can't see this anywhere ... you asked: 'Is it possible with CListCtrl?'

And for this I must still say: 'Yes it is, if you use code like that I gave you the link to'.
0
 

Author Comment

by:AdrianBogdan
ID: 6431675
I didn't thout that it would be that much trouble for a B grade.
Is it that important?
I guess there's a contest going on here.. but who has time to read that kind of details..
I'm very happy that this is the best forum-site (talking about the huge data-base of Q&A and that the "speed" of the answears). I really think that the site is a REAL use of internet.

I have 1232 Q-points, I'm willing to give 800 points (if it is that important); but how can do that?
Hmm.. Here's a way: I'll post the following question:
"What's up, Zoppo?"; please add a comment and I'll give you 800 points..

I use my points pretty rarelly that's why I'm so generous :))

By why, what u'll use the points for? besides FAME

I wish you clean coding ;)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to you can convert your project to a Maven project and the Maven plugin should download the source 1 42
fix34  challenge 9 104
mapAB Challlenge 35 123
wordmultiple challenge 12 117
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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 video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

914 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

16 Experts available now in Live!

Get 1:1 Help Now