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

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questionedit other columnsmemberpeoria12330 Apr '13 - 5:38 
GeneralMy vote of 5memberfrankagra29 Nov '11 - 11:29 
QuestionHow to do sortingmemberchevu6 Jul '09 - 19:21 
QuestionCBS_DROPDOWN errmemberbala_potty25 Apr '07 - 4:30 
AnswerRe: CBS_DROPDOWN errmemberSnakefoot9 Sep '08 - 0:34 
GeneralRe: CBS_DROPDOWN errmemberbala_potty15 Sep '08 - 20:17 
GeneralThank you very much!!!!memberluoky20 Nov '06 - 23:23 
GeneralI found a bug.memberrotaerc4 Jan '05 - 15:32 
GeneralShort lists, no scoll bars, autoset drop down heightmemberjjwalters21 Sep '04 - 10:59 
Generalquestion about ListCtrl EditBox and ComboBoxmemberalla_hpl27 Jan '04 - 3:22 
QuestionHow to use Editable List Control in CFrameView WIndowsussT R Raghavendra6 Dec '03 - 2:28 
GeneralProblem with scrollingmemberCabbi21 Apr '03 - 21:08 
GeneralRe: Problem with scrollingmemberraba1621 Oct '03 - 5:53 
GeneralRe: Problem with scrollingsusstom.schultz29 Mar '05 - 19:15 
GeneralRe: Problem with scrollingmemberWireman24 Jun '05 - 12:14 
QuestionHow to suppress a combo box when uses Checboxes?memberyummi28 Jan '03 - 7:43 
GeneralAuthor's response to supidmembershilonir24 Aug '01 - 1:41 
GeneralWhen in Dialog the easier waymemberSudip22 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
Web01 | 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