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

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -