Is there a way to modify a value in a listview after it is added

thedesolatesoul

Expert
Licensed User
Longtime User
This is something elementary, but I just want confirmation whether it can be done.
It seems that there is no way to modify a value of a label in a listview, once it has been added.
I was hoping there could be a way, where I could assign a string ByRef, so when I change the value of the string, it changes in the listview automatically.
Thanks!
 

stevel05

Expert
Licensed User
Longtime User
You could dump all the info in the ListView to a list, change what you need to change and then re-populate the ListView again.

This can be very quick, I use a similar method to filter entries in a list of over 2000 items and it's almost instant.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
This can be very quick, I use a similar method to filter entries in a list of over 2000 items and it's almost instant.

You can set the scroll position so the edited field re-appears in the window, if I remember correctly it will be at the top of the visible window (unless it's less that one screen full from the top or bottom).
 
Upvote 0

thedesolatesoul

Expert
Licensed User
Longtime User
Yes, I now plan to use a scrollview.
I wanted to create a download list (like in the browser), which is also expandable/collapsible. and shows the current progress of all the downloads.
Initially I thought I could get away with using a listview (and using cunning indentation to indicate hierarchy), but now I think a scrollview is the way to go.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Yes that sounds more appropriate considering what you actually want it to do.
 
Upvote 0
Top