ListView Control questions

S

Samuel Shulman

Hi

I have 2 questions regarding this control,

1. Is there a property to limit selection to one item (like MultiSelection
of the PC version)

2. What is the simplest way to find out which item is selected

Thank you for your help,
Samuel
 
C

Chris Oswald

1) What type of view do you want to use in the ListView? Details,
Large Icon, Small Icon, List?

2) SelectedIndices() will tell you what is selected. You can use the
index to access the item.
 
G

Guest

Event better just use FocusedItem() as this will return the ListViewItem
instance of the item selected.

Simon.
 
S

Samuel Shulman

It seems that the FocusedItem is sometimenothing even if the items is
selected

Cheers,
Samuel
 
G

Guest

Focused and Selected are not the same. Focused has a box around it,
selected are inverted colors. Only one item can ever be focused, even with
multiple select. Same is true on the desktop.
 

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