IListView.ReadOnly

Syntax

ReadOnly: Boolean;

@ReadOnly: boolean;

Description

The ReadOnly property determines whether it is possible to make changes in the list.

Comments

NOTE. Editing of other interface elements is not denied.

Example

Executing the example requires that the form contains the Button component named Button1 and the ListView component named ListView1 (for Fore.NET example use the MetabaselistViewNet component named MetabaselistViewNet1).

Add links to the system assemblies:

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    ListView1.ReadOnly := 
False;
End Sub Button1OnClick;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Begin
    MetabaselistViewNet1.@ReadOnly := 
True;
End Sub;

After executing the example it will be allowed to edit list text in the ListView component.

See also:

IListView