cm.addHeaderGroup(1, 0, new HeaderGroupConfig(tbl, 1, 2));
} else {
cm.addHeaderGroup(1, 0, new HeaderGroupConfig("Stock Information", 1, 2));
}
ContentPanel cp = new ContentPanel();
cp.setBodyBorder(false);
cp.setIcon(Resources.ICONS.table());
cp.setHeading(widget ? "Column Grouping with Widget" : "Column Grouping");
cp.setButtonAlign(HorizontalAlignment.CENTER);
cp.setLayout(new FitLayout());
cp.setSize(600, 300);
Grid<Stock> grid = new Grid<Stock>(store, cm);
grid.setStyleAttribute("borderTop", "none");
grid.getView().setForceFit(true);
grid.setBorders(true);
cp.add(grid);
vp.add(cp);
}