ListView Control questions

  • Thread starter Thread starter Samuel Shulman
  • Start date Start date
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
 
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.
 
Event better just use FocusedItem() as this will return the ListViewItem
instance of the item selected.

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

Cheers,
Samuel
 
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.
 
Back
Top