private void populateDepartmentsGridWithDefault() { form.dyngrdDepartments().getRows().clear(); DepartmentTypeCollection departments = LookupHelper.getDepartmentType(domain.getLookupService()); if(departments == null) return; for(int i=0; i<departments.size(); i++) { if(departments.get(i) == null) continue; DynamicGridRow row = form.dyngrdDepartments().getRows().newRow(); DynamicGridCell cell = row.getCells().newCell(getSelectedColumn(COLDEPARTMENT), DynamicCellType.LABEL); cell.setValue(departments.get(i).getText()); cell.setTooltip(departments.get(i).getText()); cell.setReadOnly(true); cell = row.getCells().newCell(getSelectedColumn(COLSELECTED), DynamicCellType.BOOL); cell.setAutoPostBack(true); cell = row.getCells().newCell(getSelectedColumn(COLDEFAULT), DynamicCellType.BOOL); cell.setAutoPostBack(true); row.setValue(departments.get(i)); } }