property XMLGrid.AutoEdit as Boolean
Specifies whether the node may be edited when it has the focus.

TypeDescription
Boolean A boolean expression that indicates whether the control starts editing the focused node.
By default, the AutoEdit property is True. The AutoEdit property has no effect if the focused node has no editor assigned. Use the Editor property to assign an editor to a node. Use the Add method to add new type of editors to the control. Use the Edit method to programmatically edit the focused node, when AutoEdit property is False. Use the Editing property to specify whether the control is running in edit mode.

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