Select all rows

Can you make a button that lets you select all rows, not just 300 at a time?