Skip to main content

TcxGridEditingController.HideEdit(Boolean) Method

Closes an active in-place editor.

Declaration

procedure HideEdit(Accept: Boolean); override;

Parameters

Name Type
Accept Boolean

Remarks

You can use the HideEdit method to close an active in-place editor being used for editing of the contents of the selected cell. To know whether an editor is opened, see the IsEditing property.

The HideEdit method allows you to post and discard changes of the edit value. To accept and post changes, set the Accept parameter to True. In this case, the edit value is validated by the editor first and then posted to a dataset. If the validation failed or the edit value cannot be stored by a data controller, an exception will occur. If Accept is False, changes are discarded and an old value is restored.

To open an editor for a specific item, you can use the EditingItem property and ShowEdit method.

See Also