When removing an item from a ListView, how do I highlight the item that relaces it in VB.NET? -
i have listview in project has dynamically added/edited/deleted items. when user deletes item, want item replaces deleted item highlighted. tried storing deleted item's index highlighting item there (list.items(index).selected = true
). works unless item deleted last item in listview (both literally , sequentially). i'm having issues today logic , can't quite come code checks these kinds of cases.
could me? feel incredibly stupid brain falls apart today.
if index = list.items.count ' deleted index @ end of list , thing else list.items(index).selected = true end if
Comments
Post a Comment