Click here to Skip to main content
Click here to Skip to main content

Editable Table Control

By , 19 Aug 2001
 

Sample Image - editable_list.jpg

Introduction

I had to implement some kind of list representation of a certain product-sell table (Product | Price | ProductID | Amount ). So, I decided to use ListCtrl for that matter. Basically, ListCtrl is fun to play with. One of the styles supported by ListCtrl is called report-view, which is used here. ListCtrl also allow editable entries as one of its styles. Unfortunately, when dealing with report-view, editing is applied only to the first column‘s elements.

My Solution

The solution was to create an Edit window on-demand, on top of the according cell-entry. Then, when done editing, a notification message is sent to parent ListCtrl. Thinking this idea is simple enough, I have also perfected it to create ComboBox on demand for certain cells to narrow the input options ( Such as Product field, which is out of the predefined list of elements ).

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

shilonir
Israel Israel
Member
Nir Shilon -
B.Sc. in Mathematics & Computer Science of Tel-Aviv University.
I have worked for the past 2 years in DSPG as a R&D software engineer.
As part of Debugger/Simulator team ( Myself, Anna & Yair).
I basically taught myself MFC and other Win32 programming stuff.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questionedit other columns Pinmemberpeoria12330 Apr '13 - 5:38 
GeneralMy vote of 5 Pinmemberfrankagra29 Nov '11 - 11:29 
QuestionHow to do sorting Pinmemberchevu6 Jul '09 - 19:21 
QuestionCBS_DROPDOWN err Pinmemberbala_potty25 Apr '07 - 4:30 
GeneralThank you very much!!!! Pinmemberluoky20 Nov '06 - 23:23 
GeneralI found a bug. Pinmemberrotaerc4 Jan '05 - 15:32 
GeneralShort lists, no scoll bars, autoset drop down height Pinmemberjjwalters21 Sep '04 - 10:59 
Generalquestion about ListCtrl EditBox and ComboBox Pinmemberalla_hpl27 Jan '04 - 3:22 
QuestionHow to use Editable List Control in CFrameView WIndow PinsussT R Raghavendra6 Dec '03 - 2:28 
GeneralProblem with scrolling PinmemberCabbi21 Apr '03 - 21:08 
QuestionHow to suppress a combo box when uses Checboxes? Pinmemberyummi28 Jan '03 - 7:43 
GeneralAuthor's response to supid Pinmembershilonir24 Aug '01 - 1:41 
GeneralWhen in Dialog the easier way PinmemberSudip22 Aug '01 - 2:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 20 Aug 2001
Article Copyright 2001 by shilonir
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid