Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.OnBeforeCloseInplaceEditor Event

Fired before an in-place editor is closed. Allows final validation or cancellation. Set ACanClose to False to keep the editor open.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Syntax

FMX.TMSFNCDataGridRenderer.hppPascalC++
OnBeforeCloseInplaceEditor: TTMSFNCDataGridBeforeCloseInplaceEditorEvent;
__property TTMSFNCDataGridBeforeCloseInplaceEditorEvent OnBeforeCloseInplaceEditor = {read=FOnBeforeCloseInplaceEditor, write=FOnBeforeCloseInplaceEditor};

Remarks

Fires for both commit and cancel (see ACancelled), before OnCellEditValidateData and before the value is written to the cell. When ACanClose is False, StopEditing and CancelEditing return False.

Parameters

Name Description
Sender Renderer that fired the event.
ACell Cell whose editor is closing.
AInplaceEditor Editor control that is closing.
ACancelled True when the close operation cancels editing.
AValue Value that can be adjusted before the editor closes.
ACanClose Set to False to keep the editor open.