selecting a row in a List Control
-
I want to select a row in a List Control and then delete it by pressing a deletebutton in my dialog based program. How do I do that? Please help me, I tried so many things but it doesn't work!
-
I want to select a row in a List Control and then delete it by pressing a deletebutton in my dialog based program. How do I do that? Please help me, I tried so many things but it doesn't work!
One solution is to first determine what rows are selected. When the user presses a button, look through the selected item database and call DeleteItem(). Keep a count as you delete each item and subtract the item index in the database from the count. One reason is because as you delete an item, the the indices of items after the deleted item decreases by one. Kuphryn