![]() | Type | Description | ||
| EditTypeEnum | An EditTypeEnum expression that specifies the type of the editor. |
The following sample adds an integer editor and a float point editor:
With XMLGrid1
.BeginUpdate
.AutoEdit = True
With .Editors.Add("Float", EditType)
.Numeric = exFloat
End With
With .Editors.Add("Integer", EditType)
.Numeric = exInteger
End With
With .Nodes
With .Add("<b>Float</b> Number")
.Editor = "Float"
End With
With .Add("<b>Integer</b> Number")
.Editor = "Integer"
End With
End With
.EndUpdate
End With
The following sample adds check list editor:
With XMLGrid1
.BeginUpdate
.AutoEdit = True
With .Editors.Add("CL", CheckListType)
.AddItem 1, "One"
.AddItem 2, "Two"
.AddItem 4, "Four"
End With
With .Nodes
With .Add("Check", 3)
.Editor = "CL"
End With
End With
.EndUpdate
End With
The following sample adds a progress bar editor:
With XMLGrid1
.BeginUpdate
.AutoEdit = True
With .Editors.Add("PRO", ProgressBarType)
.Option(exProgressBarBackColor) = vbGreen
End With
With .Nodes
With .Add("Progress", 34)
.Editor = "PRO"
End With
End With
.EndUpdate
End With