Type | Description | |||
Options as Variant | Reserved. |
The edit events are fired in the following order:
Edit event. Prevents editing nodes, before showing the node's editor.
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.
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.
EditClose event. The node's editor is hidden and closed.
The following sample starts editing a node as soon as user presses the F2 key:
Private Sub XMLGrid1_KeyDown(KeyCode As Integer, Shift As Integer) With XMLGrid1 If .Editing = 0 Then If KeyCode = vbKeyF2 Then .Edit End If End If End With End Sub