Data.Bind.ObjectScope.TListInsertEvent

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
type
typedef
Visibility: public
Source:
Data.Bind.ObjectScope.pas
Data.Bind.ObjectScope.hpp
Unit: Data.Bind.ObjectScope
Parent: Data.Bind.ObjectScope

Delphi

TListInsertEvent = procedure(Sender: TBindSourceAdapter; AIndex: Integer; var AHandled: Boolean; var ANewIndex: Integer) of object;

C++

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

Description

TListInsertEvent is an event handler that takes place when an adapter is requested to insert a new data source item.

TListInsertEvent has the following parameters:

  • Sender defines the adapter.
  • AIndex specifies the new index item.

The next parameters are set by the developer:

  • AHandled can take two values:
    • True when a new item is created and inserted into the data source by the event handler.
    • False to let the adapter create and insert a new item.
  • ANewIndex is set to the new index item.

See Also