Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.StopEditing Method

Closes the active in-place editor and writes its value back to the cell.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Syntax

FMX.TMSFNCDataGridRenderer.hppPascalC++
function StopEditing(AFocusGrid: Boolean = True): Boolean;
bool __fastcall StopEditing(bool AFocusGrid = true);

Remarks

Call this before reading cell values or saving data while the user may still be typing, so that the pending edit is not lost.

Parameters

Name Description
AFocusGrid When True, returns focus to the grid after the editor is closed.

Returns

True when the value was committed or no editor was active; False when closing was refused, for example because validation in OnCellEditValidateData failed or an OnBeforeCloseInplaceEditor handler blocked it.