Listview selected item

T

Tiago Salgado

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
 
T

Tiago Salgado

I've already made it... lol ... i use this code:

listview1.selectedindices.Clear()
 
S

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
 
T

Tiago Salgado

In my last post, i indicate the solution that i've used...

Thanks

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
 

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