If MyListView.SelectedItems.Count > 0
Obviously you will need to make any necessary changes to match your PK value.