Hello there!
Here is a simple script which will help you to create different sorts of UI Grids Layouts.
It is similar to Horizontal or Vertical Layout Groups and controls behavior of the child objects.
How to use:
Package includes the Demo Scene where you can play with the script before deciding to use it in your project.