title: Setting ListGrid selection in SmartGWT with method "selectRecords(Record record)"
body: <p>I'm trying to set the selected records of a ListGrid table object in SmartGWT using records, but I can't find any way of doing it. I want to select with record, not index. I want to use <code>selectRecord(Record record)</code> method.</p>
  
  <p>As an example;</p>
  
  <pre><code>public void onModuleLoad() 
  {
      VLayout main = new VLayout();
      final ListGrid grid = new ListGrid();
      grid.setHeight(500);
      grid.setWidth(400);
      grid.setFields(new ListGridField("name", "Name"));
      grid.setData(createRecords());
  
      final IButton button = new IButton("Select some");  
      button.addClickHandler(new ClickHandler() {  
          public void onClick(ClickEvent event) 
          {  
            grid.selectRecord(createRecord("orange")); 
          }  
      });  
  
      main.addMember(grid);
      main.addMember(button);
      RootPanel.get().add(main);
  }
  
  private ListGridRecord[] createRecords() 
  {
      return new ListGridRecord[]{
        createRecord("monkey"),
        createRecord("banana"),
        createRecord("orange"),
        createRecord("sun")
      };
  }
  
  private ListGridRecord createRecord(String name) 
  {
      ListGridRecord record = new ListGridRecord();
      record.setAttribute("name", name);
      return record;
  }
  </code></pre>
  
  <p>In this case I want to select orange, But this code select anything. 
  Is it posible? If possible how?</p>
  
  <p>Thanks in advance.</p>