Remarks

Setting the SelectedID property on a Listbox control also sets the ListItemID property, and fires the ProgrammaticChange event.

The SelectedID property is particularly useful where users can make multiple selections. You can quickly check which items in a list are selected. You can also use this property to select or deselect items in a list using code. To check whether the third item in a ListBox is selected, issue the following: