property Node.Editor as Variant
Specifies a value that indicates the key of the node's editor.

 TypeDescription 
   Variant A EditTypeEnum, string, numeric expression that indicates the key of the editor being assigned to a node. The control automatically adds a new editor of EditTypeEnum type, if no editor with specified key is found. Ability to specify the node's editor without calling the Editors.Add before, by specify the Node.Editor property to a EditTypeEnum value. For instance, Nodes.Add("Date", Date).Editor = EXMLGRIDLibCtl.EditTypeEnum.DateType, adds a node with a DateType editor.   
The Editor property indicates the key of the editor being assigned to the node. If the Editor property indicates a key of an editor that doesn't exist in the Editors collection, it has no effect.  Use the Editors property to access the control's Editors collection. Use the AutoEdit property to specify whether the control starts editing the focused node as soon as user moves the focused node.

Use the Add method to add new type of editors to the control's editors collection. A node displays only the node's name if the node contains child nodes, else it displays the node's name and the node's value. Use the Value property to assign a value to a node. If a node has an editor assigned, it changes the node's name if the node contains child nodes, else it changes the node's value if the node has no child nodes. Use the Add method to add new nodes to the control.

The control fires the Change event when the user changes the node's value if the node has no child nodes, or the node's name if the node has child nodes.

If a node has an editor assigned the node's editor is applied to the:

The following sample adds a node that has a check list editor associated:

With XMLGrid1
    .BeginUpdate
        With .Editors
            With .Add("Check")
                .EditType = CheckListType
                .AddItem 1, "<b>1</b> One"
                .AddItem 2, "<b>2</b> Two"
                .AddItem 4, "<b>4</b> Four"
            End With
        End With
        With .Nodes
            With .Add("CheckList <b>type</b>", 3)
                .Editor = "Check"
            End With
        End With
    .EndUpdate
End With

Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.