TreeGrid header row columns with same names


I would like to build a treegrid with multiple header rows, and I need to use some header row columns with the same name in a row. I try to use a HierarchicalContainer and the following code:

for (…) {
addContainerProperty(column, String.class, “”);

, but in the IndexedContainer has:

public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) {

// Fails if the Property is already present
if (propertyIds.contains(propertyId)) {
return false;


Any idea, how can I do that?



Use unique property values, just add different texts to the header cells.