Hard code column layouts in templates

HI all,

Wish to make some changes.

In the back office admin you can define the products column settings. How many products in a row before the next row starts.

I would like to know if this can be hard coded in the template structure so I can create 2 templates. Once with 3 columns for products images and one for 4 columns and then assign the templates to certain categories.

Any ideas would be much appreciated.