if (value != null) grid.setData(value);
grid.setCanEdit(true);
grid.setSaveLocally(true);
grid.addCellSavedHandler(new CellSavedHandler() {
@Override
public void onCellSaved(CellSavedEvent event) {
ListGrid grid = (ListGrid) event.getSource();
GridEditorItem item = (GridEditorItem) grid.getCanvasItem();
RecordList data = grid.getDataAsRecordList();