In a listbox, right-click the row you want to delete and select Delete Row from the shortcut menu to delete the entire row. In a tree control, right-click the row you want to delete and select Delete Item from the shortcut menu to delete the row. Subsequent rows in the listbox or tree control shift up.
|Note Deleting an item in a tree control deletes all of the items underneath the item.|
If you do not update the value of a tree control after deleting a row, the control may return old data. Deleting a selected item does not change the value of a tree control. After you delete an item, the tree value may be a tag for an item that no longer exists. You can select one of the remaining tree items to update the value of the tree control.
|Note You cannot delete individual cells in a row.|
Right-click a tree control and select Delete All Items from the shortcut menu to delete all rows in the tree control.