Gets the index in the data provider of the selected item.
The default value is -1 (no selected item).