Solved

Editable list box with multiple columns

Posted on 1997-05-19
2
183 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 100 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 95
iSeries FTP Exit Program 8 163
sum13 challenge 24 134
withoutTen challenge 14 137
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

763 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