Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Editable list box with multiple columns

Posted on 1997-05-19
2
Medium Priority
?
191 Views
Last Modified: 2013-11-19
I need to create an editable list box with multiple columns. Similar to a spreadsheet where you can enter data in each column and the corresponding data on each row gets updated when you scroll. How can this be done? Is there a sample source somewhere that I can look at?
0
Comment
Question by:dtan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 10

Accepted Solution

by:
RONSLOW earned 200 total points
ID: 1301665
What you seem to be asking for is a grid cotrol.  VC comes with DBGrid - you can go to the TrueDBGrid web site and upgrade to the better TrueDBGrid (free)

Other than that, I'd start with a CListCtrl rather than a list box.  You can then popup a dialog when the user clicks on a row to allow you to edit any of the columns.  If you really want inplace editing, you'd need to write a bit of code that would respond to left or right mouse clicks, determine the row and column the mouse is over, and create and place an edit box over the cell so you can edit the value.

The better solution if you want inplace editing is to use the grid control that comes with VC (or get the one from the true-grid site).

True DBGrid is at http://www.apexsc.com/truedbgrid.html

0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1301666
Oops - I gave you the URL for the pro version instead of the free one .. go to http://www.apexsc.com/truedbgridstandard.html
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question