PC Review


Reply
Thread Tools Rate Thread

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

 
 
Al Findlay
Guest
Posts: n/a
 
      7th Oct 2003
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.
 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      7th Oct 2003
(E-Mail 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/>
 
Reply With Quote
 
Francis Ingels [MSFT]
Guest
Posts: n/a
 
      7th Oct 2003
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: hirf-spam-me-(E-Mail 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: <blumk2$gj7ik$(E-Mail Removed)>
>References: <(E-Mail Removed)>
>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])
>X-Face:

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
>Path:

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 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/>
>


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      7th Oct 2003
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.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
Al Findlay
Guest
Posts: n/a
 
      8th Oct 2003
I have found this little nugget in MSDN...

http://support.microsoft.com/default...&Product=vbNET

Although it is for combo boxes, I'm sure it could easily be changed
for any user control.

Al.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
set checkboxes in listview from list mp Microsoft C# .NET 1 20th Jan 2011 04:59 AM
checkbox in form to control checkboxes in subform LVer Microsoft Access Form Coding 3 16th Jul 2008 10:28 PM
ListView - How to add checkbox column Alex St-Pierre Microsoft Excel Programming 0 20th Dec 2007 02:48 PM
How to add checkboxes to every column in ListView =?Utf-8?B?Sy4gV2lsZGVy?= Microsoft VB .NET 2 25th Apr 2005 05:42 PM
ListView: column width if View == List jg Microsoft Dot NET Framework Forms 3 25th Jan 2004 09:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:38 AM.