

| Type | Description | |||
| Key as Variant | A string or long expression that indicates the key of the editor being added. | |||
| Type as EditTypeEnum | An EditTypeEnum expression that indicates the type of the editor being added. |
| Return | Description | |||
| Editor | An Editor object being created. |
Use the AutoEdit property to specify whether the control starts editing the focused node as soon as user moves the focused node. Use the Edit method to programmatically edit a node, if the AutoEdit property is False.
If a node has an editor assigned the node's editor is applied to the:
The following sample adds a drop down editor and a float edit box:
With XMLGrid1
.BeginUpdate
.AutoEdit = True
With .Editors.Add("Float", EditType)
.Numeric = exFloat
End With
With .Editors.Add("DropDown", DropDownListType)
.AddItem 1, "Yes"
.AddItem 2, "No"
End With
With .Nodes
With .Add("Root").Nodes
With .Add("Child 1", "1.2")
.Editor = "Float"
End With
With .Add("Child 2", "1")
.Editor = "DropDown"
End With
End With
End With
.EndUpdate
End With
Use the AddNode event to apply a specific editor to all nodes in the control at adding time.