ReadOnly: Boolean;
@ReadOnly: boolean;
The ReadOnly property determines whether it is possible to make changes in the list.
True. By default. It is denied to edit text in the list.
NOTE. Editing of other interface elements is not denied.
False. Edit text in the list is allowed.
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:
for Fore example: Forms
for Fore.NET example: Forms, Forms.Net.
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: