Fix #1775 (selection): allow selection of rows by visible index