The view object might be having 50K rows displayed on screen out of it user could have selected less number of rows. Instead of iterating all the rows to determine 2 selected rows out of it, We can always use getFilteredRows() method on VO and get the array of selected rows.
Row[] selRowArr = vo.getFilteredRows("RowChkFlg", Boolean.TRUE);
In this example, RowChkFlg is one of the boolean attribute dragged onto the screen and allows to select row.