Back to Devexpress

VGridControlBase.HideEditor() Method

windowsforms-devexpress-dot-xtraverticalgrid-dot-vgridcontrolbase-7d5a4115.md

latest2.2 KB
Original Source

VGridControlBase.HideEditor() Method

Hides and destroys the active editor, and discards any changes made.

Namespace : DevExpress.XtraVerticalGrid

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

Declaration

csharp
public virtual void HideEditor()
vb
Public Overridable Sub HideEditor

Remarks

The HideEditor method destroys the edited cell’s editor and switches the vertical grid to browse mode. Changes made within the edited cell are discarded. The HideEditor method is automatically called when an end-user presses the ESC key after modifying the cell’s value. Note that calling this method raises the VGridControlBase.HiddenEditor event. Do not call this method in cell editor event handlers (for instance, ButtonClick) since the editor can be destroyed before it finishes processing these events, which leads to exceptions.

If no cell is being edited at the moment, calling the HideEditor method does nothing.

For more information, see Showing and Hiding Editors.

See Also

ShowingEditor

ShowEditor()

HiddenEditor

VGridControlBase Class

VGridControlBase Members

DevExpress.XtraVerticalGrid Namespace