Still doing it the wrong way. Added boolean to register the unchecking and checking of the rows.