Solved

Add checkbox to ListView 2nd & 3rd Columns

Posted on 2004-08-31
6
3,177 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
6 Comments
 
LVL 18

Expert Comment

by:JR2003
Comment Utility
I think with TrueDBGrid you can do this.
0
 
LVL 22

Expert Comment

by:DarkoLord
Comment Utility
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
Comment Utility
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:williery10
Comment Utility
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
Comment Utility
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
Comment Utility
<Gris control >
I meant the GRID control, of course!!!!

/Richard
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now