Gets the index of the selected row.
The rows in a table are zero-based and do not include the table header.