Home All Groups Group Topic Archive Search About

Re: Listview selected item

Author
10 Jul 2006 1:22 PM
sethuganesh
hi,

  Try the following option

    listview1.items.item(index).selected = false

where index is the item that you want to deselect.pls reply me whether
it works or not.

Thanks,
Ganesh

Tiago Salgado wrote:
Show quoteHide quote
> I've already made it... lol ... i use this code:
>
> listview1.selectedindices.Clear()
>
> On Sun, 09 Jul 2006 16:18:34 +0100, Tiago Salgado <tiagosalgado.developer>
> wrote:
>
> > I everyone... I've got a listview (details) ... and i'm trying to
> > unselect any item selected...
> >
> > In a combobox, e.g, i can put this:
> >
> > ComboBox1.SelectedIndex = -1
> >
> > I want to do this but in a listview control... can anyone help me?
> >
> > Thanks
> >
> >
>
>
>
> --
> Tiago Salgado
> http://www.foruns.org

Author
10 Jul 2006 5:07 PM
Tiago Salgado
In my last post, i indicate the solution that i've used...

Thanks

On Mon, 10 Jul 2006 14:22:53 +0100, <sethugan***@gmail.com> wrote:

Show quoteHide quote
> hi,
>
>   Try the following option
>
>     listview1.items.item(index).selected =3D false
>
> where index is the item that you want to deselect.pls reply me whether=

> it works or not.
>
> Thanks,
> Ganesh
>
> Tiago Salgado wrote:
>> I've already made it... lol ... i use this code:
>>
>> listview1.selectedindices.Clear()
>>
>> On Sun, 09 Jul 2006 16:18:34 +0100, Tiago Salgado  =

>> <tiagosalgado.developer>
>> wrote:
>>
>> > I everyone... I've got a listview (details) ... and i'm trying to
>> > unselect any item selected...
>> >
>> > In a combobox, e.g, i can put this:
>> >
>> > ComboBox1.SelectedIndex =3D -1
>> >
>> > I want to do this but in a listview control... can anyone help me?
>> >
>> > Thanks
>> >
>> >
>>
>>
>>
>> --
>> Tiago Salgado
>> http://www.foruns.org
>



-- =

Tiago Salgado
http://www.foruns.org