Add support for nesting to grid