ColumnHandle ch = (ColumnHandle) table.getColumns().get(0);
// ch.setProperty("Width", "3in");
ch.getWidth().setStringValue("3in");
PropertyHandle computedSet = table.getColumnBindings();
cs1 = StructureFactory.createComputedColumn();
cs2 = StructureFactory.createComputedColumn();
cs3 = StructureFactory.createComputedColumn();
cs4 = StructureFactory.createComputedColumn();
cs5 = StructureFactory.createComputedColumn();
cs6 = StructureFactory.createComputedColumn();
cs1.setName("ORDERNUMBER");
cs1.setExpression("dataSetRow[\"ORDERNUMBER\"]");
cs1.setDataType("Integer");
computedSet.addItem(cs1);
cs2.setName("Product");
cs2.setExpression("dataSetRow[\"PRODUCTCODE\"]");
cs2.setDataType("String");
computedSet.addItem(cs2);
cs3.setName("Amount");
cs3.setExpression("dataSetRow[\"QUANTITYORDERED\"]");
cs3.setDataType("Integer");
computedSet.addItem(cs3);
cs4.setName("TotalAmount");
cs4.setExpression("dataSetRow[\"QUANTITYORDERED\"]");
cs4.setDataType("Integer");
cs4.setAggregateFunction("SUM");
computedSet.addItem(cs4);
cs5.setName("GroupTotalAmount");
cs5.setExpression("dataSetRow[\"QUANTITYORDERED\"]");
cs5.setDataType("Integer");
cs5.setAggregateOn("MyGroup");
cs5.setAggregateFunction("SUM");
computedSet.addItem(cs5);
// Header
RowHandle header = (RowHandle) table.getHeader().get(0);
CellHandle tcell = (CellHandle) header.getCells().get(0);