Hi,
I want to have a command button that will autoselect all subitems in the first column of the listview? Anyone know how to do this? Thanx in advance.
Printable View
Hi,
I want to have a command button that will autoselect all subitems in the first column of the listview? Anyone know how to do this? Thanx in advance.
You can't.
You can only select rows in listviews - not columns.
If you need to select columns, then you'll need to use another control. I forget exactly which but it's one of the Microsoft ones.
Yes I made a mistake, what I meant is how do I autoselect all rows. I have full row select on already but how do I auto select all rows in the listview under one command button?
Code:Dim Count as Long
For Count = 1 to ListView1.ListItems.Count
Listview1.ListItems(Count).Selected = True
Next