SetSelection

[method icon] SetSelection()

Removes any current selection from the drop down list

Applies to: ComboBox , Grid , GridCell , KCMLEdit , List Box


[method icon] SetSelection(iIndex)

Used to select an item in the drop down list by index

iIndex Integer

Applies to: ComboBox , Grid , GridCell , KCMLEdit , List Box


>SetSelection

SetSelection

Used by the control to select the dropdown item specified by the supplied index value.

For example:

 .EditControl1.SetSelection(ItemNo)

If no index value is specified then the current selection, if any, is removed.

The AddSelection() method is used to select items in multiple and extended selection list boxes.

See also

ComboBox methods, properties and events. Grid methods, properties and events. GridCell methods, properties and events. KCMLEdit methods, properties and events. List Box methods, properties and events.