event EditOpen ()
Occurs when the edit operation starts.

 TypeDescription 
The EditOpen event notifies your application that the user starts editing a node. Use the FocusNode property to get the node being edited. 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.

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

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

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

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

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

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

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

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

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

*** ActiveX Control Event ***

wait window nowait "EditOpen event is called."


Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.