title: How to store data from SmartGWT ListGrid?
body: <p>I've been searching for hours but I couldn't find an answer to my question: I've set up a <code>ListGrid</code> similar to the one shown here (<a href="http://www.smartclient.com/smartgwt/showcase/#grid_frozen_editing" rel="nofollow">Link</a>). Right now I am using a XML-File as data source (default rows) just like in the example. It is also possible to add and delete rows to/from the grid. </p>
  
  <p>Therefore I would like to store every user's data from the grid in a data store (Google Datastore). So I need to read all the rows of the current user as Strings. What would be a good way to do that? I already tried the following, but without success:</p>
  
  <pre class="lang-java prettyprint-override"><code>    ListGrid componentsGrid = new ListGrid();
      componentsGrid.setWidth(500);
      componentsGrid.setHeight(224);
      componentsGrid.setCellHeight(22);
      componentsGrid.setDataSource(ComponentsXmlDS.getInstance());
  
      componentsGrid.setAutoFetchData(true);
      componentsGrid.setCanEdit(true);
      componentsGrid.setModalEditing(true);
      componentsGrid.setEditEvent(ListGridEditEvent.CLICK);
      componentsGrid.setListEndEditAction(RowEndEditAction.NEXT);
      componentsGrid.setAutoSaveEdits(false);
      layout.addMember(componentsGrid);
  
          //First try
          componentsGrid.fetchData();                 
          logger.log(Level.INFO, "Components: "+ componentsGrid.getResultSet().get(0).getAttribute("componentType"));
  
          //Second try                    
          logger.log(Level.INFO, "Components: "+ componentsGrid.getAllFields());
  
         // Third try
         logger.log(Level.INFO, "Components: "+ componentsGrid.getRecords());
  </code></pre>
  
  <p>Anyone having a hint? Help is greatly appreciated.</p>