event EditClose ()
Occurs when the edit operation ends.

TypeDescription
The EditClose event notifies your application that the node's editor is hidden and closed. Use the FocusNode property to specify the control's focused node. Use the Editor property to assign an editor to a node. The Editing specifies the window's handle of the built-in editor while the control is running in edit mode. Use the AutoEdit property to specify whether the control starts editing the focused node.

The edit events are fired in the following order:

  1. Edit event. Prevents editing nodes, before showing the node's editor.

  2. EditOpen event. The edit operation started, the node's editor is shown. The Editing property gives the window's handle of the built-in editor being shown.

  3. Change event. The Change event is fired only if the user types ENTER key, the user selects a new value from a predefined data list, or focus a new node.

  4. EditClose event. The node's editor is hidden and closed.

Syntax for EditClose event, /NET version, on:

private void EditCloseEvent(object sender)
{
}

Private Sub EditCloseEvent(ByVal sender As System.Object) Handles EditCloseEvent
End Sub

Syntax for EditClose event, /COM version, on:

private void EditCloseEvent(object sender, EventArgs e)
{
}

void OnEditClose()
{
}

void __fastcall EditClose(TObject *Sender)
{
}

procedure EditClose(ASender: TObject; );
begin
end;

procedure EditCloseEvent(sender: System.Object; e: System.EventArgs);
begin
end;

begin event EditClose()
end event EditClose

Private Sub EditCloseEvent(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EditCloseEvent
End Sub

Private Sub EditClose()
End Sub

Private Sub EditClose()
End Sub

LPARAMETERS nop

PROCEDURE OnEditClose(oXMLGrid)
RETURN

Syntax for EditClose event, /COM version (others), on:

<SCRIPT EVENT="EditClose()" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function EditClose()
End Function
</SCRIPT>

Procedure OnComEditClose 
	Forward Send OnComEditClose 
End_Procedure

METHOD OCX_EditClose() CLASS MainDialog
RETURN NIL

void onEvent_EditClose()
{
}

function EditClose as v ()
end function

function nativeObject_EditClose()
return

The following VB sample displays a message when an editor is closed:

Private Sub XMLGrid1_EditClose()
    Debug.Print "XMLGrid1_EditClose event is fired"
End Sub

The following C++ sample displays a message when an editor is closed:

void OnEditCloseXmlgrid1() 
{
	OutputDebugString( "OnEditCloseXmlgrid1 is called." );
}

The following VB.NET sample displays a message when an editor is closed:

Private Sub AxXMLGrid1_EditClose(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxXMLGrid1.EditClose
    Debug.Print("AxXMLGrid1_EditClose is called.")
End Sub

The following C# sample displays a message when an editor is closed:

private void axXMLGrid1_EditClose(object sender, EventArgs e)
{
	System.Diagnostics.Debug.Write("axXMLGrid1_EditClose is called.");
}

The following VFP sample displays a message when an editor is closed:

*** ActiveX Control Event ***

wait window nowait "EditClose event is called."