Solved

Add checkbox to ListView 2nd & 3rd Columns

Posted on 2004-08-31
6
3,181 Views
Last Modified: 2008-01-09
Hi there,
I have be trying to get a listview component to allow me to create the follwing.

Column 1 : Text (eg name)
Column 2 : Checkbox
Column 3 : Checkbox

Then I would fill each column with rows dynamically with checked and uncheck values for each corresponding name which the user can then change (checkboxes that is). Anyway I have manages to put a check box in the first column which is wrong, but cant seem to find a way to format the last two as checkboxes as which is really what I need. There are many tutorials on adding text and sort the listview component but I can't find anything that show me how to do the above or anything like it. Does any one know a good tutorial or have any suggestions.

Cheers in advance,
Williery
0
Comment
Question by:williery10
[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
6 Comments
 
LVL 18

Expert Comment

by:JR2003
ID: 11945976
I think with TrueDBGrid you can do this.
0
 
LVL 22

Expert Comment

by:DarkoLord
ID: 11946034
I think SGrid 2 from vbAccelerator can also do it:

http://www.vbaccelerator.com/home/VB/Code/Controls/S_Grid_2/index.asp

Darko
0
 
LVL 10

Expert Comment

by:RichardCorrie
ID: 11946943
The simple answer, inferred from previous answers, is that the standard MS List box will not allow you to do this.  You could use the Gris control as a pseudo-list or get a third party control as suggested above.

My prefered is Component Toolbox from dbi www.dbi-tech.com

/Richard
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

Author Comment

by:williery10
ID: 11954990
Would kind of like to avoid using third party components. Wouldn't Datagrid allow me to do the above.

Best regards,
Will
0
 
LVL 22

Expert Comment

by:DarkoLord
ID: 11956284
Almost everything can be done with subclassing... you should consider first if it is worth that time though...

Darko
0
 
LVL 10

Accepted Solution

by:
RichardCorrie earned 95 total points
ID: 11956423
<Gris control >
I meant the GRID control, of course!!!!

/Richard
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
VBA/SQL - Connect to SQL server and pull data 4 150
Spell Check in VB6 13 147
RUNRMTCMD from AS/400 13 128
Userform to show a range in excel. 3 33
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

732 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