Remember that the selectedItems and selectionIndices attributes are collections, even if only a single item is selected.