Link to home
Start Free TrialLog in
Avatar of AdrianBogdan
AdrianBogdan

asked on

edit CListCtrl

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?
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

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
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of peterchen092700
peterchen092700

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
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.
Avatar of AdrianBogdan

ASKER

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
hope you don't mid for giving you an B grade :))
see my comment above
>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'.
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 ;)