Solved

Add checkbox to ListView 2nd & 3rd Columns

Posted on 2004-08-31
6
3,180 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
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA open file from excel cell 4 44
bit defender blocks good applications 2 101
checkbox to hide entire section 10 42
VBA: loop recent folder and copy txt file. 8 36
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

828 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