Data.Bind.ObjectScope.TListDeleteEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TListDeleteEvent = procedure(Sender: TBindSourceAdapter; AIndex: Integer; var AHandled: Boolean; var ADeleted: Boolean) of object;

C++

typedef void __fastcall (__closure *TListDeleteEvent)(TBindSourceAdapter* Sender, int AIndex, bool &AHandled, bool &ADeleted);

Properties

Type Visibility Source Unit Parent
type
typedef
public
Data.Bind.ObjectScope.pas
Data.Bind.ObjectScope.hpp
Data.Bind.ObjectScope Data.Bind.ObjectScope

Description

TListDeleteEvent is an event handler that takes place when an adapter is requested to delete an existing data source item.

TListDeleteEvent has the following parameters:

  • Sender defines the adapter.
  • AIndex identifies an index of the item to delete.

The following parameters are set by the developer

  • AHandled can take two values, True when the item's default processing by the adapter is not needed. And False to let the adapter delete the item.
  • ADeleted set to True when the item is deleted.