Home All Groups Group Topic Archive Search About

Listview deselect all

Author
29 Aug 2006 7:37 PM
John Devlon
Hello,

Does anyone know how to deselect all items in a listview ?

Thanx

John

Author
29 Aug 2006 8:53 PM
Tom Shelton
John Devlon wrote:
> Hello,
>
> Does anyone know how to deselect all items in a listview ?
>
> Thanx
>
> John

ListView.SelectedItems.Clear ()

HTH,

--
Tom Shelton
Author
29 Aug 2006 9:00 PM
John Devlon
Hey Tom,

Thanx... works great...
What would I do without you ... ?

John


Show quoteHide quote
"Tom Shelton" <t**@mtogden.com> schreef in bericht
news:1156884795.813969.90520@e3g2000cwe.googlegroups.com...
>
> John Devlon wrote:
>> Hello,
>>
>> Does anyone know how to deselect all items in a listview ?
>>
>> Thanx
>>
>> John
>
> ListView.SelectedItems.Clear ()
>
> HTH,
>
> --
> Tom Shelton
>
Author
30 Aug 2006 5:36 AM
GhostInAK
Hello Tom,

Listview.Items.Clear would work as well.

-Boo

Show quoteHide quote
> John Devlon wrote:
>
>> Hello,
>>
>> Does anyone know how to deselect all items in a listview ?
>>
>> Thanx
>>
>> John
>>
> ListView.SelectedItems.Clear ()
>
> HTH,
>
> --
> Tom Shelton
Author
30 Aug 2006 5:49 AM
Tom Shelton
GhostInAK wrote:
> Hello Tom,
>
> Listview.Items.Clear would work as well.
>
> -Boo
>

Sure, if you actually want to remove all the items from the listview...

--
Tom Shelton
Author
30 Aug 2006 5:46 PM
GhostInAK
Hello Tom,

Was a joke Tom.  Was just thinking that if one of the regular idiots had
posted this it would be stated something like.. "How do I clear all the items
in my listview?... 30 posts later ... "...because I dont want anything selected...".

-Boo

Show quoteHide quote
> GhostInAK wrote:
>
>> Hello Tom,
>>
>> Listview.Items.Clear would work as well.
>>
>> -Boo
>>
> Sure, if you actually want to remove all the items from the
> listview...
>
> --
> Tom Shelton
Author
30 Aug 2006 5:57 PM
Cor Ligthert [MVP]
Boo,

I am not aware that I have ever asked that.

Cor

Show quoteHide quote
"GhostInAK" <ghosti***@gmail.com> schreef in bericht
news:be1391bf15fe18c89a303f133993@news.microsoft.com...
> Hello Tom,
>
> Was a joke Tom.  Was just thinking that if one of the regular idiots had
> posted this it would be stated something like.. "How do I clear all the
> items in my listview?... 30 posts later ... "...because I dont want
> anything selected...".
>
> -Boo
>
>> GhostInAK wrote:
>>
>>> Hello Tom,
>>>
>>> Listview.Items.Clear would work as well.
>>>
>>> -Boo
>>>
>> Sure, if you actually want to remove all the items from the
>> listview...
>>
>> --
>> Tom Shelton
>
>
Author
30 Aug 2006 11:11 PM
GhostInAK
Hello Cor Ligthert [MVP],

That's probably because you aren't an idiot, Cor.

-Boo

Show quoteHide quote
> Boo,
>
> I am not aware that I have ever asked that.
>
> Cor
>
> "GhostInAK" <ghosti***@gmail.com> schreef in bericht
> news:be1391bf15fe18c89a303f133993@news.microsoft.com...
>
>> Hello Tom,
>>
>> Was a joke Tom.  Was just thinking that if one of the regular idiots
>> had posted this it would be stated something like.. "How do I clear
>> all the items in my listview?... 30 posts later ... "...because I
>> dont want anything selected...".
>>
>> -Boo
>>
>>> GhostInAK wrote:
>>>
>>>> Hello Tom,
>>>>
>>>> Listview.Items.Clear would work as well.
>>>>
>>>> -Boo
>>>>
>>> Sure, if you actually want to remove all the items from the
>>> listview...
>>>
>>> --
>>> Tom Shelton