What ever code you had placed in the Click event of the Button to add rows, move the same code to the Exit event of the last control in the Row. That way when you exit the last field in the row, it will add a new row to the table.
Adding and Deleting rows depend on the script and not on the button. So you can move the script to any event based on your need.
Hope this helps.
Thanks
Srini