SetSelection
SetSelection()
Removes any current selection from the drop down list
Applies to: ComboBox , Grid , GridCell , KCMLEdit , List Box
SetSelection(iIndex)
Used to select an item in the drop down list by index
iIndex | Integer |
---|
Applies to: ComboBox , Grid , GridCell , KCMLEdit , List Box
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.