A column of checkboxes (checkbox) in a list view (listview) control (.NET)

A

Al Findlay

Hello!

In Visual Basic .NET (1.1)...

Is it possible to have a column of check boxes in a list view? So, for
example, a column named "Tested?" can have a boolean value assigned to
it in a nice, neat way?...

Product Name | Product version | Tested?
----------------------------------------------------
Prod1 | 1.1 | [ ]
Prod2 | 2.0 | [/]
Prod3 | 0.1 | [ ]

etc...

If not, what would be a good workaround (images?)

Thanks a lot!

Al.
 
H

Herfried K. Wagner [MVP]

(e-mail address removed) (Al Findlay) scripsit:
Is it possible to have a column of check boxes in a list view? So, for
example, a column named "Tested?" can have a boolean value assigned to
it in a nice, neat way?...

Product Name | Product version | Tested?
----------------------------------------------------
Prod1 | 1.1 | [ ]
Prod2 | 2.0 | [/]
Prod3 | 0.1 | [ ]

etc...

If not, what would be a good workaround (images?)

That's not supported directly. You may want to use a datagrid control instead.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Java-Server für J2EE-Applikationen verwundbar
<http://www.heise.de/newsticker/data/dab-07.10.03-000/>
 
F

Francis Ingels [MSFT]

This may or may not be sufficient, but a list view does allow you to
display a checkbox next to each item in the control.

To use this, set the ListView.CheckBoxes property to true;

Francis Ingels
Visual Studio Update

--------------------
From: (e-mail address removed) (Herfried K. Wagner [MVP])
Newsgroups: microsoft.public.dotnet.languages.vb
Subject: Re: A column of checkboxes (checkbox) in a list view (listview) control (.NET)
Date: 07 Oct 2003 17:36:21 +0200
Lines: 24
Sender: Administrator@FAMILIE-IF1R60H
Message-ID: <[email protected]>
References: <[email protected]>
NNTP-Posting-Host: v208-105.vps.tuwien.ac.at (128.131.208.105)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 1065541059 17407572 128.131.208.105 (16 [208219])
vJn^g[Lkg9YfJ,Oj#{Y[')WBo<1kS#Rc3Vb!D;jf$;OZ%<"'z+DX"K/m)h\Gi;e-AYsc%'CmL~Ix
@YEq$}A>^]KbF1.Z|=/'*CcB[f+8(m&vP.u4+P.q$n]?[s>nnFu/8EuC?h[c\#wR{ok_um~57to=
P=1"{qO1e%A2~nS?<[o`jn?C/-}7Mbz~L)WI=5VL!*xU#^d
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp (Windows)) Hamster/2.0.0.1
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!v208-105.vps.tuwien.ac.A
T!not-for-mail
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:144586
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

(e-mail address removed) (Al Findlay) scripsit:
Is it possible to have a column of check boxes in a list view? So, for
example, a column named "Tested?" can have a boolean value assigned to
it in a nice, neat way?...

Product Name | Product version | Tested?
----------------------------------------------------
Prod1 | 1.1 | [ ]
Prod2 | 2.0 | [/]
Prod3 | 0.1 | [ ]

etc...

If not, what would be a good workaround (images?)

That's not supported directly. You may want to use a datagrid control instead.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Java-Server für J2EE-Applikationen verwundbar
<http://www.heise.de/newsticker/data/dab-07.10.03-000/>
 
H

Herfried K. Wagner [MVP]

ringels@subtract_this_field.microsoft.com (Francis Ingels [MSFT]) scripsit:
This may or may not be sufficient, but a list view does allow you to
display a checkbox next to each item in the control.

To use this, set the ListView.CheckBoxes property to true;

ACK.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top