PC Review


Reply
Thread Tools Rate Thread

check item in listview

 
 
Maarten
Guest
Posts: n/a
 
      26th Nov 2004
how do i check an item in a listview at runtime (not by cklicking on it with
mouse)

for example i have a button, and when i press it, al items in the list must
be checked.

kind regards Maarten


 
Reply With Quote
 
 
 
 
Simon Jefferies
Guest
Posts: n/a
 
      26th Nov 2004
As follows:

For Each itm As ListViewItem In MyListView.Items
itm.Checked = True
Next

HTH
Regards
Simon Jefferies
mailto:simon[nospam]@cooltoolsonline.co.uk
-- remove [nospam] to email me --


"Maarten" <(E-Mail Removed)> wrote in message
news:41a72804$0$9291$(E-Mail Removed)...
> how do i check an item in a listview at runtime (not by cklicking on it
> with mouse)
>
> for example i have a button, and when i press it, al items in the list
> must be checked.
>
> kind regards Maarten
>



 
Reply With Quote
 
Shiva
Guest
Posts: n/a
 
      26th Nov 2004
Use the ListViewItem.Checked property.

"Maarten" <(E-Mail Removed)> wrote in message
news:41a72804$0$9291$(E-Mail Removed)...
how do i check an item in a listview at runtime (not by cklicking on it with
mouse)

for example i have a button, and when i press it, al items in the list must
be checked.

kind regards Maarten



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      26th Nov 2004
Maarten,

Probably is this the one you miss
ListView1.HideSelection = False

I hope this helps?

Cor




"Maarten" <(E-Mail Removed)>
> how do i check an item in a listview at runtime (not by cklicking on it
> with mouse)
>
> for example i have a button, and when i press it, al items in the list
> must be checked.
>
> kind regards Maarten
>



 
Reply With Quote
 
Maarten
Guest
Posts: n/a
 
      26th Nov 2004
thank you all for the reply, you helped me very much

"Maarten" <(E-Mail Removed)> wrote in message
news:41a72804$0$9291$(E-Mail Removed)...
> how do i check an item in a listview at runtime (not by cklicking on it
> with mouse)
>
> for example i have a button, and when i press it, al items in the list
> must be checked.
>
> kind regards Maarten
>



 
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
help coloring individual listview item instead of all listview item in visual c++ tonyck Webmaster / Programming 0 7th Jul 2006 11:06 AM
Highlighting a ListView item when the ListView does not have focus Rookie Microsoft C# .NET 3 13th Jul 2004 07:58 PM
Listview Item.Selected not populating Listview.SelectedItems collection Chris Adams Microsoft Dot NET Framework Forms 0 23rd Apr 2004 01:30 AM
Item Check on Listview Sandra Microsoft Dot NET 0 12th Nov 2003 03:03 AM
Item Check on Listview Sandra Microsoft Dot NET Framework Forms 0 31st Oct 2003 06:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:34 AM.