[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TCustomListView.ReadOnly

Disables editing of list items on the control when set to True.

## Declaration

Source position: comctrls.pp line 1681

`public property TCustomListView.ReadOnly : Boolean index Ord(lvpReadOnly) read GetProperty write SetProperty default False;`

## Description

ReadOnly is a Boolean property used to enable or disable editing of captions for list items at run-time. When ReadOnly is set to True, the editor for the control cannot be activated using a mouse double Click or by pressing the F2 function key.

The default value for the property is False, and indicates that item editing is allowed.

ReadOnly is one of the TListViewProperty values included in the TListViewProperties set type and exchanged with the widgetset class. The property value is read from and written to the TCustomTreeview widgetset class instance when its handle is valid. Changing the value for the property causes the widgetset class to be updated with the new value.

## See also

TListViewProperties |  | Set type used to store values from the TListViewProperty enumeration.
TListViewProperty |  | Represents Boolean properties used in TCustomListView.