Made binding to the view-model for the grid work cleanly and fixed a nasty bug in the utility class.