The DeSelectIndex method deselects the list entry at the specified position for multiple selection listboxes. The currently selected list item is highlighted and surrounded by a dotted border.


The only argument is:


The index (starting with 1) of the list item to be deselected. If you specify no index or 0 for this argument, all items are deselected.

Return value:

-1 if an error occurred.