Click to See Complete Forum and Search --> : ListView - Knowing How Much is Selected
ohad21
May 27th, 2001, 07:51 AM
Wanted to know if it is possible to know how many and which lines did the user selected in the listview if the multi Selection is enabled.
Like the RowSel in Grid, but here the user can choose any one he want, so how can i know?
phunkydude
May 27th, 2001, 08:41 AM
Hi,
testing if any items where selected at all use
if listview1.selecteditem = nothing then
to get the selected items you must iterate the list items and test each item's 'selected' property.
for i = 1 to listview.listitems.count
if listview.listitems(i).selected then
'This item is selected
else
'This item is NOT selected
endif
next i
PhunkyDude
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.