Programmatically select a table row

Hi and thanks for your quick reply. Why 6 rows? I can’t select a table row if it has less?