Is it possible to create a grid with subsections?

We started looking into the containers now and would appreciate some pointers on how to move forward. We’ve only been working with Vaadin for a couple of weeks now, so it’s still a bit challenging to navigate between the set of alternatives. Currently we use an SQLContainer with our Grid, and we’ve implemented our own FreeformQuery and FreeformStatementDelegate to go with that (our queries can get rather complex). I’m not quite sure how to get from where we are to having a container that also implements Hierarchical. Extending SQLContainer and implementing Hierarchical in it, somehow bolting the added functionality on top of the SQLContainer (doesn’t sound nice)? Creating a totally new container that implements the necessary interfaces (Hierarchical, Indexed, Filterable, others?), and keeping a reference to an SQLContainer inside of it, implementing the additional functionality in the wrapper? Something completely different? I don’t know if we can move away from the SQLContainer, as we need to be able to dynamically configure the database queries to include columns from multiple tables via joins, and to filter the results based on arbitrary SQL (such as subselects), and I didn’t really find anything else that would fit the bill besides SQLContainer. We don’t currently use an ORM, so we’re pretty much stuck with writing SQL for now (unfortunately).