Adding the ability to get the selected rows of a table.

Useful for mass updates/deletes of rows.