title: How to select the first row by default in UI-grid in angular JS
body: <p>How select the first Row default in UI-Grid in Angular JS:</p>
  
  <p>I tried below code, but it is not working:</p>
  
  <pre><code> $scope.gridOptions.data =  someData;
      $timeout(function () {
          $scope.gridApi.selection.selectRow($scope.gridOptions.data[0]);
      },
      100) 
  </code></pre>
  
  <p>and Tried even below solution also but this is also not working :</p>
  
  <pre><code> $scope.gridOptions.data =  someData;
      $scope.gridApi.selection.selectRow($scope.gridOptions.data[0]);
  </code></pre>
  
  <p>Could any one please suggest how to get it. Thanks in advance </p>