Click here to Skip to main content
15,353,818 members
Articles / Desktop Programming / MFC
Posted 19 Aug 2001


63 bookmarked

Editable Table Control

Rate me:
Please Sign up or sign in to vote.
4.84/5 (26 votes)
19 Aug 2001
An editable combo list control

Sample Image - editable_list.jpg


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 ).


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

Israel Israel
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.

Comments and Discussions

GeneralMy vote of 2 Pin
China_NewComer18-Nov-13 5:49
MemberChina_NewComer18-Nov-13 5:49 
QuestionScroll bar is black before clicking it Pin
bfm8923-Jun-13 16:28
Memberbfm8923-Jun-13 16:28 
AnswerRe: Scroll bar is black before clicking it Pin
VincyChan25-May-15 15:07
professionalVincyChan25-May-15 15:07 
Questionedit other columns Pin
peoria12330-Apr-13 5:38
Memberpeoria12330-Apr-13 5:38 
AnswerRe: edit other columns Pin
wy73722-May-13 12:22
Memberwy73722-May-13 12:22 
GeneralMy vote of 5 Pin
frankagra29-Nov-11 11:29
Memberfrankagra29-Nov-11 11:29 
QuestionHow to do sorting Pin
chevu6-Jul-09 19:21
Memberchevu6-Jul-09 19:21 
QuestionCBS_DROPDOWN err Pin
bala_potty25-Apr-07 4:30
Memberbala_potty25-Apr-07 4:30 
AnswerRe: CBS_DROPDOWN err Pin
Rolf Kristensen9-Sep-08 0:34
MemberRolf Kristensen9-Sep-08 0:34 
GeneralRe: CBS_DROPDOWN err Pin
bala_potty15-Sep-08 20:17
Memberbala_potty15-Sep-08 20:17 
GeneralThank you very much!!!! Pin
luoky20-Nov-06 23:23
Memberluoky20-Nov-06 23:23 
GeneralI found a bug. Pin
rotaerc4-Jan-05 15:32
Memberrotaerc4-Jan-05 15:32 
GeneralShort lists, no scoll bars, autoset drop down height Pin
Jordan Walters21-Sep-04 10:59
MemberJordan Walters21-Sep-04 10:59 
Generalquestion about ListCtrl EditBox and ComboBox Pin
alla_hpl27-Jan-04 3:22
Memberalla_hpl27-Jan-04 3:22 
QuestionHow to use Editable List Control in CFrameView WIndow Pin
T R Raghavendra6-Dec-03 2:28
sussT R Raghavendra6-Dec-03 2:28 
GeneralProblem with scrolling Pin
Cabbi21-Apr-03 21:08
MemberCabbi21-Apr-03 21:08 
GeneralRe: Problem with scrolling Pin
raba1621-Oct-03 5:53
Memberraba1621-Oct-03 5:53 
GeneralRe: Problem with scrolling Pin
tom.schultz29-Mar-05 19:15
Membertom.schultz29-Mar-05 19:15 
GeneralRe: Problem with scrolling Pin
wireman24-Jun-05 12:14
Memberwireman24-Jun-05 12:14 
QuestionHow to suppress a combo box when uses Checboxes? Pin
yummi28-Jan-03 7:43
Memberyummi28-Jan-03 7:43 
GeneralAuthor's response to supid Pin
shilonir24-Aug-01 1:41
Membershilonir24-Aug-01 1:41 
GeneralWhen in Dialog the easier way Pin
22-Aug-01 2:49
suss22-Aug-01 2:49 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.