Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxGridEditingController.HideEdit(Boolean) Method

Closes an active in-place editor.

#Declaration

Delphi
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