Removing Items from ListView won't refresh #2887
Replies: 2 comments 2 replies
-
Try |
Beta Was this translation helpful? Give feedback.
1 reply
-
I was setting the control to refresh. I think I need a break before I shoot myself in the foot anymore. I created my own PowerShell problem by not paying attention to scope. I had a listview in my dialog with the same name as the listview in the main form. When I called the update function, it was updating the dialog listview and not the main listview. I thought I was being clever but instead blew my big toe off. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am stumped and tired of banging my head against the wall. I have a list view that uses an external source. I have code that can add an item to the external source, refresh the list view, and it properly displays the update list. But when I run code to remove an item from the external source, using the same list view code won't refresh the list in the app. I have debugged and verified the item is removed in the external source, and that the list source also reflects the change. I simply can't get the listview to refresh and display the updated source. Again, adding an item works fine, but using the same code to remove an item doesn't refresh the list.
Maybe I'm just accidentally lucky getting the added item to show and I'm missing a specific step.
Beta Was this translation helpful? Give feedback.
All reactions