|
-
Sep 9th, 2006, 08:38 AM
#1
Thread Starter
Junior Member
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
-
Sep 9th, 2006, 09:27 AM
#2
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
-
Sep 9th, 2006, 10:33 AM
#3
Thread Starter
Junior Member
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
-
Sep 11th, 2006, 03:15 AM
#4
Junior Member
Re: listview checkbox problem
In VB IDE set Listview property View = List and Checkboxes = true Try It
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|