Display buttons in a grid

Show the buttons in a grid of xx columns (see attached image)