I have a list box from which I allow a user to select multiple rows. One action that the user is allowed to do once the selections are made is to delete the underlying data.
All of this works fine except that after I requery the list box, the lit box rows are still highlighted as selected and it seems as if the .ItemsSelected collection is still populated with the same number of rows.
Note: The data is deleted correctly and is not displayed after the requery.
Question:
How can I clear the selection and the ItemsSelected collection so that it does not mess up future user actions.
Thanks,
All of this works fine except that after I requery the list box, the lit box rows are still highlighted as selected and it seems as if the .ItemsSelected collection is still populated with the same number of rows.
Note: The data is deleted correctly and is not displayed after the requery.
Question:
How can I clear the selection and the ItemsSelected collection so that it does not mess up future user actions.
Thanks,