title: Smart Gwt List Grid:How to check selected records
body: <p>I am using smart gwt 2.5 List grid.
  In this I am using check box for simple selection.below is the code for that:</p>
  
  <pre><code>    getGrid().setSelectionAppearance(SelectionAppearance.CHECKBOX);
          getGrid().setSelectionType(SelectionStyle.SIMPLE);
  </code></pre>
  
  <p>I am using data source for the list grid.For feeding data  calling this method:</p>
  
  <pre><code> public void setTestData(DataClass[] testData) {
      setAttribute("testData", testData, true);
  }
  </code></pre>
  
  <p>My grid is rendering data properly.Now I want to set checked some of records (Row) depending in some condition.Lets say I want row number 1 and 5 should be checked.</p>
  
  <p>For this after feeding data to data source I write code like below to check data:</p>
  
  <pre><code>    getGrid().selectRecord(1);` 
      getGrid().selectRecord(5);
  </code></pre>
  
  <p>But is not doing any checked operations to check box.I am not getting at what point I am doing mistake.
  same thing when I tried with out data source and I feed data to list grid simply by setdata It was working.
  Please help me out.Thanks in advance </p>