Data.Bind.ObjectScope.TListInsertEvent
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);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type typedef |
public | Data.Bind.ObjectScope.pas Data.Bind.ObjectScope.hpp |
Data.Bind.ObjectScope | Data.Bind.ObjectScope |
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.