christie
03-27-2003, 05:14 AM
hi,
i've made a listview, and i want to make sure nothing is selected when the form starts up, so my fill looks like this:
With lvShowList
.View = lvwReport
.GridLines = True
.LabelWrap = True
.FullRowSelect = True
.ColumnHeaders.Add , , "Naam"
'then here i _do_ stuff , is all ok, just fill the thing up with
'the correct data
With .ListItems
For i = 0 To UBound(arrData)
.Add , , arrData(i)
Next i
End With
Set lvShowList.SelectedItem = Nothing
End With
when i debug: selected item is set to nothing,
unfortunately, it _is_ set to the first item.
anybody's got a clue on how to _really_ set selecteditem to nothing (and make it stay that way untill a user clicked on something)
thanx,
christie
i've made a listview, and i want to make sure nothing is selected when the form starts up, so my fill looks like this:
With lvShowList
.View = lvwReport
.GridLines = True
.LabelWrap = True
.FullRowSelect = True
.ColumnHeaders.Add , , "Naam"
'then here i _do_ stuff , is all ok, just fill the thing up with
'the correct data
With .ListItems
For i = 0 To UBound(arrData)
.Add , , arrData(i)
Next i
End With
Set lvShowList.SelectedItem = Nothing
End With
when i debug: selected item is set to nothing,
unfortunately, it _is_ set to the first item.
anybody's got a clue on how to _really_ set selecteditem to nothing (and make it stay that way untill a user clicked on something)
thanx,
christie