FMX.Grid.TGridModel.OnCreateCustomEditor
Delphi
property OnCreateCustomEditor: TCreateCustomEditorEvent read FOnCreateCustomEditor write FOnCreateCustomEditor;
C++
__property TCreateCustomEditorEvent OnCreateCustomEditor = {read=FOnCreateCustomEditor, write=FOnCreateCustomEditor};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | FMX.Grid.pas FMX.Grid.hpp |
FMX.Grid | TGridModel |
Description
Occurs before the creation of the editor for cells in a column.
FMX.Grid.TGridModel.OnCreateCustomEditor inherits from FMX.Grid.TCustomGrid.OnCreateCustomEditor. All content below this line refers to FMX.Grid.TCustomGrid.OnCreateCustomEditor.
Occurs before the creation of the editor for cells in a column.
Write an OnCreateCustomEditor event handler to take specific actions when a custom editor is created for this grid.
This event is called every time when the grid activates a cell editor. If a custom editor is not required, just do nothing in this event handler and the default editor is created.
The OnCreateCustomEditor event can by called from a presentation (depends on the implementation) to create a custom defined cell editors. Since the presentation does not know about a TCustomGrid object, the presentation calls TGridModel.OnCreateCustomEditor from the Model. For this reason, the TCustomGrid.OnCreateCustomEditor event handler is always the same as the TGridModel.OnCreateCustomEditor event handler of the Model.