TTMSFNCDataGridBeforeCloseInplaceEditorEvent Event Type
Fired when the inplace editor is about to close, before the edited value is validated and written to the cell.
API unit family: TMSFNCDataGridRenderer
Remarks
Order when closing: OnBeforeInplaceEditorGetValue / OnAfterInplaceEditorGetValue, this event, OnCellEditValidateData, OnCellEditSetData, the cell update, then OnAfterCloseInplaceEditor.
Parameters
| Name | Description |
|---|---|
Sender |
The grid renderer. |
ACell |
Coordinate of the edited cell. |
AInplaceEditor |
The editor control. |
ACancelled |
True when editing is being cancelled (for example with Escape); the value is then not written. |
AValue |
The value read from the editor, converted to the type of the current cell value; can be changed. |
ACanClose |
Defaults to True. Set to False to keep the editor open and focused. |