Click here to Skip to main content
Licence 
First Posted 19 Aug 2001
Views 141,492
Bookmarked 52 times

Editable Table Control

By | 19 Aug 2001 | Article
An editable combo list control

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. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 5 Pinmemberfrankagra11:29 29 Nov '11  
QuestionHow to do sorting Pinmemberchevu19:21 6 Jul '09  
QuestionCBS_DROPDOWN err Pinmemberbala_potty4:30 25 Apr '07  
AnswerRe: CBS_DROPDOWN err PinmemberSnakefoot0:34 9 Sep '08  
GeneralRe: CBS_DROPDOWN err Pinmemberbala_potty20:17 15 Sep '08  
GeneralThank you very much!!!! Pinmemberluoky23:23 20 Nov '06  
GeneralI found a bug. Pinmemberrotaerc15:32 4 Jan '05  
GeneralShort lists, no scoll bars, autoset drop down height Pinmemberjjwalters10:59 21 Sep '04  
Generalquestion about ListCtrl EditBox and ComboBox Pinmemberalla_hpl3:22 27 Jan '04  
QuestionHow to use Editable List Control in CFrameView WIndow PinsussT R Raghavendra2:28 6 Dec '03  
GeneralProblem with scrolling PinmemberCabbi21:08 21 Apr '03  
GeneralRe: Problem with scrolling Pinmemberraba165:53 21 Oct '03  
GeneralRe: Problem with scrolling Pinsusstom.schultz19:15 29 Mar '05  
GeneralRe: Problem with scrolling PinmemberWireman12:14 24 Jun '05  
QuestionHow to suppress a combo box when uses Checboxes? Pinmemberyummi7:43 28 Jan '03  
GeneralAuthor's response to supid Pinmembershilonir1:41 24 Aug '01  
GeneralWhen in Dialog the easier way PinmemberSudip2:49 22 Aug '01  

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

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

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