listview checkbox problem
All
I have a listview and i want to show the checkboxes after i click a button
Im using the code below
Me.lstCustomers.CheckBoxes = True
but this doesnt show the checkboxes until i click on am item in my list view, and then it only shows the checkbox for the selected item??
can anyone tell me how to get the checkboxes visible (Or hidden) at the click of my button please
thanks
Gibbo
Re: listview checkbox problem
The solution for this problem that I have found is to loop through the list of items and set the CheckBox value.
VB Code:
Dim oItem As ListItem
ListView1.Checkboxes = True
For Each oItem In ListView1.ListItems
oItem.Checked = False
Next
Re: listview checkbox problem
thankyou
That will do nicely although i did wonder if looping through several thousand records might not be that fast and hoped there would be a quicker way
thanks again
gibbo
Re: listview checkbox problem
In VB IDE set Listview property View = List and Checkboxes = true Try It