Applies to

ListView, TreeView controls


When the DeleteItems property is true, the user can delete items from the ListView or TreeView with the Delete key. When DeleteItems is false, the user cannot delete items.


In a painter

To allow users to delete items from the control:

  • Select the DeleteItems check box on the General page of the control's Properties view.

In scripts

The DeleteItems property takes a boolean value. The following example disables deletion of ListView items by the user:

lv_1.DeleteItems = FALSE