Vcl.ComCtrls.TCustomListView.CanEdit

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CanEdit(Item: TListItem): Boolean; dynamic;

C++

DYNAMIC bool __fastcall CanEdit(TListItem* Item);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomListView

Description

Specifies whether the text of a list item can be changed by the user.

CanEdit is called automatically when the user attempts to edit the text of the list item specified by the Item parameter. CanEdit generates an OnEditing event to determine whether to allow the user to edit the item. CanEdit returns true if the user can proceed. CanEdit returns false if the user should be blocked from editing the item. CanEdit always returns true if there is no OnEditing event handler.

Override CanEdit to add additional logic to determine whether an item can be edited or to block the OnEditing event.

See Also